aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-09-08 17:02:16 +0200
committerjcid <devnull@localhost>2008-09-08 17:02:16 +0200
commit5205356fef9cf35d3ed759c9f6960ebd34d772f9 (patch)
tree74f7f63c95fc682bb8b787a9d047d7b20b2d9f6b /src/html.cc
parent9d0c154884a9b10c2e45f269be0bb686da1c98c9 (diff)
- Fixed the "Load Images" menu item in the page popup.
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc
index 40ef31c6..806e5950 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -701,6 +701,16 @@ DilloHtmlForm *DilloHtml::getCurrentForm ()
return forms->get (forms->size() - 1);
}
+bool_t DilloHtml::unloadedImages()
+{
+ for (int i = 0; i < images->size(); i++) {
+ if (images->get(i)->image != NULL) {
+ return TRUE;
+ }
+ }
+ return FALSE;
+}
+
/*
* Load images if they were disabled.
*/
@@ -756,7 +766,7 @@ bool DilloHtml::HtmlLinkReceiver::press (Widget *widget, int link, int img,
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,
- prefs.load_images);
+ html->unloadedImages());
ret = true;
} else {
a_UIcmd_link_popup(bw, html->links->get(link));