From: Christian Dywan Date: Tue, 21 Feb 2012 20:45:34 +0000 (+0100) Subject: katze_item_get_image check if icon is set X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f586c3004b9277fcd6e0e23b439f232be6fc784b;p=midori katze_item_get_image check if icon is set --- diff --git a/katze/katze-item.c b/katze/katze-item.c index af708d37..b9ca0605 100644 --- a/katze/katze-item.c +++ b/katze/katze-item.c @@ -444,7 +444,7 @@ katze_item_get_image (KatzeItem* item) image = gtk_image_new_from_icon_name (icon, GTK_ICON_SIZE_MENU); else { - if (!(pixbuf = katze_load_cached_icon (icon, NULL))) + if (!(icon && (pixbuf = katze_load_cached_icon (icon, NULL)))) pixbuf = katze_load_cached_icon (item->uri, NULL); if (pixbuf) {