[Xfce4-commits] <midori:master> Make sure there is an URI when spawning private browsing
Christian Dywan
noreply at xfce.org
Sun Dec 13 16:02:03 CET 2009
Updating branch refs/heads/master
to a6a4f0ffec4e3ebfa97ff19f0320a3c52a6321b2 (commit)
from d2d5bf33b642a23e3e711f7a85bbcf7f16dd5b5c (commit)
commit a6a4f0ffec4e3ebfa97ff19f0320a3c52a6321b2
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Dec 13 15:59:54 2009 +0100
Make sure there is an URI when spawning private browsing
This is mainly an issue for unit tests.
midori/midori-browser.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 87196f7..97b4a82 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -2170,8 +2170,9 @@ _action_private_browsing_activate (GtkAction* action,
MidoriBrowser* browser)
{
const gchar* uri = midori_browser_get_current_uri (browser);
- /* FIXME: Use the same binary that is running right now */
- sokoke_spawn_program ("midori -a", uri, FALSE);
+ if (uri != NULL)
+ /* FIXME: Use the same binary that is running right now */
+ sokoke_spawn_program ("midori -a", uri, FALSE);
}
static void
More information about the Xfce4-commits
mailing list