From: André Stösel Date: Tue, 3 May 2011 18:17:00 +0000 (+0200) Subject: Check in midori_search_action_get_icon if icon_name is given X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab9a1aa9ff764505ec283cef5e922d81688e08ec;p=midori Check in midori_search_action_get_icon if icon_name is given --- diff --git a/midori/midori-searchaction.c b/midori/midori-searchaction.c index e55fb774..4aa1bb7a 100644 --- a/midori/midori-searchaction.c +++ b/midori/midori-searchaction.c @@ -412,6 +412,8 @@ midori_search_action_get_icon (KatzeItem* item, if ((icon = katze_item_get_uri (item)) && (g_strstr_len (icon, 8, "://"))) return katze_load_cached_icon (icon, widget); + if (icon_name == NULL) + return NULL; screen = gtk_widget_get_screen (widget); icon_theme = gtk_icon_theme_get_for_screen (screen);