aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-09-27 21:13:51 +0200
committerjcid <devnull@localhost>2008-09-27 21:13:51 +0200
commit5718a4e8ff728af8976b809171eb5f4343197d6a (patch)
treea4849c6419c511f6d598625416086e5fae5afbb9 /src/html.cc
parent44d669d639d8999b1302d37227aa349008019b27 (diff)
- Added a workaround for segfaulting popup menus.
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc6
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 {