From: Christian Dywan Date: Sat, 16 May 2009 22:01:52 +0000 (+0200) Subject: Treat "about:blank" and "" equally in midori_view_set_uri X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8493b4c04f632dbbaa6e520725fe17e94cf71f0;p=midori Treat "about:blank" and "" equally in midori_view_set_uri This solves the problem of open speed dial tabs in the session coming back as blank tabs after a restart of Midori. --- diff --git a/midori/midori-view.c b/midori/midori-view.c index 79cd2eb7..2e5466a3 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -2006,6 +2006,8 @@ midori_view_set_uri (MidoriView* view, g_return_if_fail (MIDORI_IS_VIEW (view)); + /* Treat "about:blank" and "" equally, see midori_view_is_blank(). */ + if (!g_strcmp0 (uri, "about:blank")) uri = ""; if (!uri) uri = ""; if (1)