From b4a414f3717faca39be65343035bf944b83ec9fe Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 2 Feb 2010 22:29:31 +0100 Subject: [PATCH] Load about:blank in private window if URI is empty --- midori/midori-browser.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.5