aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-02-08 14:02:56 -0300
committercorvid <corvid@lavabit.com>2009-02-08 14:02:56 -0300
commit4e417d3988cff4143da06f438fcd39cb228ed1f9 (patch)
treedb15fc7be182ecd004909797aae4a431812cae68 /src/html.cc
parent175197dc885e13446fcc8662fd58a58dc46ad9d3 (diff)
Switched load images on/off feature to the Tools menu
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/html.cc b/src/html.cc
index 83462849..9dff41a0 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -732,8 +732,7 @@ bool DilloHtml::HtmlLinkReceiver::press (Widget *widget, int link, int img,
ret = true;
} else {
if (link == -1) {
- a_UIcmd_page_popup(bw, bw->num_page_bugs != 0,
- html->unloadedImages());
+ a_UIcmd_page_popup(bw, bw->num_page_bugs != 0);
ret = true;
} else {
a_UIcmd_link_popup(bw, html->links->get(link));
@@ -1952,7 +1951,7 @@ DilloImage *a_Html_add_new_image(DilloHtml *html, const char *tag,
// style_attrs->x_tooltip = a_Dw_tooltip_new_no_ref(attrbuf);
alt_ptr = a_Html_get_attr_wdef(html, tag, tagsize, "alt", NULL);
- if ((!alt_ptr || !*alt_ptr) && !a_UIcmd_get_images_enabled(html->bw)) {
+ if ((!alt_ptr || !*alt_ptr) && !prefs.load_images) {
dFree(alt_ptr);
alt_ptr = dStrdup("[IMG]"); // Place holder for img_off mode
}
@@ -2042,7 +2041,7 @@ DilloImage *a_Html_add_new_image(DilloHtml *html, const char *tag,
if (DW2TB(html->dw)->getBgColor())
Image->bg_color = DW2TB(html->dw)->getBgColor()->getColor();
- load_now = a_UIcmd_get_images_enabled(html->bw) ||
+ load_now = prefs.load_images ||
(a_Capi_get_flags(url) & CAPI_IsCached);
Html_add_new_linkimage(html, &url, load_now ? NULL : Image);
if (load_now)