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,8 +2170,9 @@ _action_private_browsing_activate (GtkAction* action,
|
||||||
MidoriBrowser* browser)
|
MidoriBrowser* browser)
|
||||||
{
|
{
|
||||||
const gchar* uri = midori_browser_get_current_uri (browser);
|
const gchar* uri = midori_browser_get_current_uri (browser);
|
||||||
/* FIXME: Use the same binary that is running right now */
|
if (uri != NULL)
|
||||||
sokoke_spawn_program ("midori -a", uri, FALSE);
|
/* FIXME: Use the same binary that is running right now */
|
||||||
|
sokoke_spawn_program ("midori -a", uri, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue