Check in midori_search_action_get_icon if icon_name is given

This commit is contained in:
André Stösel 2011-05-03 20:17:00 +02:00 committed by Christian Dywan
parent aa5a6903a6
commit ab9a1aa9ff

View file

@ -412,6 +412,8 @@ midori_search_action_get_icon (KatzeItem* item,
if ((icon = katze_item_get_uri (item)) && (g_strstr_len (icon, 8, "://"))) if ((icon = katze_item_get_uri (item)) && (g_strstr_len (icon, 8, "://")))
return katze_load_cached_icon (icon, widget); return katze_load_cached_icon (icon, widget);
if (icon_name == NULL)
return NULL;
screen = gtk_widget_get_screen (widget); screen = gtk_widget_get_screen (widget);
icon_theme = gtk_icon_theme_get_for_screen (screen); icon_theme = gtk_icon_theme_get_for_screen (screen);