]> spindle.queued.net Git - midori/commitdiff
Load about:blank in private window if URI is empty
authorChristian Dywan <christian@twotoasts.de>
Tue, 2 Feb 2010 21:29:31 +0000 (22:29 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 2 Feb 2010 21:29:31 +0000 (22:29 +0100)
midori/midori-browser.c

index 779ab4c88462a4d688d44b2231c07907e27b6acb..0bca342b5f3016232dbed0e103e40eb4b0c92168 100644 (file)
@@ -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