]> spindle.queued.net Git - midori/commitdiff
Respect the view's idea of back- or foreground when opening new tabs
authorChristian Dywan <christian@twotoasts.de>
Wed, 22 Jul 2009 21:55:05 +0000 (23:55 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 22 Jul 2009 21:55:05 +0000 (23:55 +0200)
midori/midori-browser.c

index a622a866049203b5658f032fa4ccbd0e37b4dd78..5df2aacc4383016e283d74c830c91e88feef93cc 100644 (file)
@@ -1101,7 +1101,8 @@ midori_view_new_tab_cb (GtkWidget*     view,
                         MidoriBrowser* browser)
 {
     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