diff options
author | jcid <devnull@localhost> | 2008-09-29 17:48:59 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-09-29 17:48:59 +0200 |
commit | bf974296adf971ecf48efb19c2ab262cd65925cc (patch) | |
tree | 6d76855d49267db22b8d6cfb1e1efb9819b8b8cc /src/html.cc | |
parent | 9264f50d84e61c874856d7a373d8c4bebfa3102f (diff) |
- Switched the image load button to be a per-window choice.
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/html.cc b/src/html.cc index 952c43a2..0f68f695 100644 --- a/src/html.cc +++ b/src/html.cc @@ -2071,7 +2071,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 (!prefs.load_images && (!alt_ptr || !*alt_ptr)) { + if ((!alt_ptr || !*alt_ptr) && !a_UIcmd_get_images_enabled(html->bw)) { dFree(alt_ptr); alt_ptr = dStrdup("[IMG]"); // Place holder for img_off mode } @@ -2126,7 +2126,8 @@ DilloImage *a_Html_add_new_image(DilloHtml *html, const char *tag, style_attrs); } - load_now = prefs.load_images || (a_Capi_get_flags(url) & CAPI_IsCached); + load_now = a_UIcmd_get_images_enabled(html->bw) || + (a_Capi_get_flags(url) & CAPI_IsCached); Html_add_new_linkimage(html, &url, load_now ? NULL : Image); if (load_now) Html_load_image(html->bw, url, Image); |