Fallback for opening new windows in app mode

This is not quite enough, inheriting config won't
work, but better than nothing at all.
This commit is contained in:
Christian Dywan 2010-10-24 20:33:38 +02:00
parent 6cdc0261e9
commit b915e45332

View file

@ -1397,7 +1397,10 @@ midori_view_new_window_cb (GtkWidget* view,
{
MidoriBrowser* new_browser;
g_signal_emit (browser, signals[NEW_WINDOW], 0, NULL, &new_browser);
if (new_browser)
midori_browser_add_uri (new_browser, uri);
else /* No MidoriApp, so this is app or private mode */
sokoke_spawn_app (uri, TRUE);
}
static void