From d55b6ddd0058a3c207e0f07a526a33498949f284 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 10 Jan 2009 20:18:26 +0100 Subject: [PATCH] Only set the proxy icon of the View if we have an item --- midori/midori-view.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index b85c79c9..5d035569 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -461,12 +461,13 @@ midori_view_update_icon (MidoriView* view, if (!icon && parts) icon = midori_view_mime_icon (icon_theme, "gnome-mime-%s-x-generic", parts[0], NULL, &icon_name); - katze_item_set_icon (view->item, icon && view->item ? icon_name : NULL); + if (view->item) + katze_item_set_icon (view->item, icon ? icon_name : NULL); if (!icon) icon = gtk_widget_render_icon (GTK_WIDGET (view), GTK_STOCK_FILE, GTK_ICON_SIZE_MENU, NULL); } - else + else if (view->item) katze_item_set_icon (view->item, NULL); katze_object_assign (view->icon, icon); g_object_notify (G_OBJECT (view), "icon"); -- 2.39.5