Respect the view's idea of back- or foreground when opening new tabs

This commit is contained in:
Christian Dywan 2009-07-22 23:55:05 +02:00
parent 4103dc48ea
commit 5dcdccb27c

View file

@ -1101,7 +1101,8 @@ midori_view_new_tab_cb (GtkWidget* view,
MidoriBrowser* browser) MidoriBrowser* browser)
{ {
gint n = midori_browser_add_uri (browser, uri); gint n = midori_browser_add_uri (browser, uri);
_midori_browser_set_current_page_smartly (browser, n); if (!background)
midori_browser_set_current_page (browser, n);
} }
static void static void