From f586c3004b9277fcd6e0e23b439f232be6fc784b Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 21 Feb 2012 21:45:34 +0100 Subject: [PATCH] katze_item_get_image check if icon is set --- katze/katze-item.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5