]> spindle.queued.net Git - midori/commitdiff
Focus search bar tab according to background option
authorPeter Hatina <phatina@redhat.com>
Mon, 16 Apr 2012 17:22:39 +0000 (19:22 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 16 Apr 2012 17:22:39 +0000 (19:22 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/777510
midori/midori-browser.c

index e5450f7d29ba28e157c288d2a7efe1d945c07a99..08679735bef714c1615679a71714c8fbb94a0a1d 100644 (file)
@@ -3891,7 +3891,10 @@ _action_search_submit (GtkAction*     action,
     search = midori_uri_for_search (url, keywords);
 
     if (new_tab)
-        midori_browser_add_uri (browser, search);
+    {
+        int n = midori_browser_add_uri (browser, search);
+        midori_browser_set_current_page_smartly (browser, n);
+    }
     else
         midori_browser_set_current_uri (browser, search);