Load about:blank in private window if URI is empty
This commit is contained in:
parent
ce43fb3c03
commit
b4a414f371
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue