if (pixbuf != NULL)
m_images.insert(std::make_pair(src, std::make_pair(pixbuf, last)));
+ unlock_images_cache();
return;
} else {
+ if (!lh_prefs_get()->enable_remote_content) {
+ debug_print("blocking download of image from '%s'\n", src);
+ unlock_images_cache();
+ return;
+ }
+
request = true;
m_images.insert(std::make_pair(url, std::make_pair((GdkPixbuf *)NULL, last)));
}
if (request) {
struct FetchCtx *ctx;
- if (!lh_prefs_get()->enable_remote_content) {
- debug_print("blocking download of image from '%s'\n", src);
- return;
- }
-
debug_print("allowing download of image from '%s'\n", src);
ctx = g_new(struct FetchCtx, 1);