Make sure there is an URI when spawning private browsing

This is mainly an issue for unit tests.
This commit is contained in:
Christian Dywan 2009-12-13 15:59:54 +01:00
parent d2d5bf33b6
commit a6a4f0ffec

View file

@ -2170,6 +2170,7 @@ _action_private_browsing_activate (GtkAction* action,
MidoriBrowser* browser)
{
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);
}