]> spindle.queued.net Git - midori/commitdiff
katze_item_get_image check if icon is set
authorChristian Dywan <christian@twotoasts.de>
Tue, 21 Feb 2012 20:45:34 +0000 (21:45 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 21 Feb 2012 20:47:07 +0000 (21:47 +0100)
katze/katze-item.c

index af708d3762b7fc04f7549e531ba1cec4246c3dfe..b9ca060520b4c3d41b820da8622662dee965e543 100644 (file)
@@ -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)
         {