Make sure there is an URI when spawning private browsing
This is mainly an issue for unit tests.
This commit is contained in:
parent
d2d5bf33b6
commit
a6a4f0ffec
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue