diff options
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/html.cc b/src/html.cc index 68c3c8d0..f6584d4c 100644 --- a/src/html.cc +++ b/src/html.cc @@ -755,12 +755,14 @@ bool DilloHtml::HtmlLinkReceiver::press (Widget *widget, int link, int img, // image menu if (link != -1) linkurl = html->links->get(link); - a_UIcmd_image_popup(bw, html->images->get(img)->url, linkurl); + const bool_t loaded_img = (html->images->get(img)->image == NULL); + a_UIcmd_image_popup( + bw, html->images->get(img)->url, loaded_img, linkurl); ret = true; } else { if (link == -1) { a_UIcmd_page_popup(bw, a_History_get_url(NAV_TOP_UIDX(bw)), - bw->num_page_bugs ? bw->page_bugs->str:NULL, + bw->num_page_bugs != 0, html->unloadedImages()); ret = true; } else { |