From: Christian Dywan Date: Tue, 2 Feb 2010 21:29:31 +0000 (+0100) Subject: Load about:blank in private window if URI is empty X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4a414f3717faca39be65343035bf944b83ec9fe;p=midori Load about:blank in private window if URI is empty --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 779ab4c8..0bca342b 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -2176,8 +2176,13 @@ _action_private_browsing_activate (GtkAction* action, { const gchar* uri = midori_browser_get_current_uri (browser); if (uri != NULL) + { /* FIXME: Use the same binary that is running right now */ - sokoke_spawn_program ("midori -a", uri, FALSE); + if (*uri != '\0') + sokoke_spawn_program ("midori -a", uri, FALSE); + else + sokoke_spawn_program ("midori -a", "about:blank", FALSE); + } } static void