Load about:blank in private window if URI is empty

This commit is contained in:
Christian Dywan 2010-02-02 22:29:31 +01:00
parent ce43fb3c03
commit b4a414f371

View file

@ -2176,8 +2176,13 @@ _action_private_browsing_activate (GtkAction* action,
{ {
const gchar* uri = midori_browser_get_current_uri (browser); const gchar* uri = midori_browser_get_current_uri (browser);
if (uri != NULL) if (uri != NULL)
{
/* FIXME: Use the same binary that is running right now */ /* 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 static void