Always unset delay on about: pages

These pages are not affected by delay but going to
a different page will honor the still set delay.
This commit is contained in:
Christian Dywan 2011-12-18 02:12:36 +01:00
parent a87b4cd7d8
commit 34c7d601c6

View file

@ -3849,6 +3849,7 @@ midori_view_set_uri (MidoriView* view,
katze_assign (view->uri, NULL); katze_assign (view->uri, NULL);
katze_assign (view->mime_type, g_strdup ("text/html")); katze_assign (view->mime_type, g_strdup ("text/html"));
katze_item_set_meta_integer (view->item, "delay", -1);
if (speeddial_markup == NULL) if (speeddial_markup == NULL)
speeddial_markup = prepare_speed_dial_html (view, TRUE); speeddial_markup = prepare_speed_dial_html (view, TRUE);
@ -4007,6 +4008,7 @@ midori_view_set_uri (MidoriView* view,
webkit_web_view_load_html_string ( webkit_web_view_load_html_string (
WEBKIT_WEB_VIEW (view->web_view), data, view->uri); WEBKIT_WEB_VIEW (view->web_view), data, view->uri);
g_free (data); g_free (data);
katze_item_set_meta_integer (view->item, "delay", -1);
if (g_strcmp0 (view->item->uri, view->uri)) if (g_strcmp0 (view->item->uri, view->uri))
katze_item_set_uri (view->item, view->uri); katze_item_set_uri (view->item, view->uri);
g_object_notify (G_OBJECT (view), "uri"); g_object_notify (G_OBJECT (view), "uri");