diff options
author | jcid <devnull@localhost> | 2008-09-27 21:13:51 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-09-27 21:13:51 +0200 |
commit | 5718a4e8ff728af8976b809171eb5f4343197d6a (patch) | |
tree | a4849c6419c511f6d598625416086e5fae5afbb9 /src/html.cc | |
parent | 44d669d639d8999b1302d37227aa349008019b27 (diff) |
- Added a workaround for segfaulting popup menus.
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 { |