From 7ac71b6bba5e32073d353a5b72ec395109895360 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 14 Mar 2011 01:03:37 +0100 Subject: [PATCH] Don't try to load icons of special pages --- midori/midori-view.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 4749c9de..57345e1c 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -899,7 +899,7 @@ _midori_web_view_load_icon (MidoriView* view) g_free (icon_file); katze_assign (view->icon_uri, icon_uri); } - else + else if (!view->special) { priv = g_slice_new (KatzeNetIconPriv); priv->icon_file = icon_file; @@ -4040,17 +4040,13 @@ midori_view_set_uri (MidoriView* view, #if WEBKIT_CHECK_VERSION (1, 1, 6) else if (g_str_has_prefix (uri, "pause:")) { - gchar* title; - - title = g_strdup_printf ("%s", view->title); katze_assign (view->uri, g_strdup (&uri[6])); midori_view_display_error ( - view, view->uri, title, + view, view->uri, view->title, _("Page loading delayed"), _("Loading delayed either due to a recent crash or startup preferences."), _("Load Page"), NULL); - g_free (title); katze_item_set_uri (view->item, uri); g_object_notify (G_OBJECT (view), "uri"); } -- 2.39.5