Focus search bar tab according to background option

Fixes: https://bugs.launchpad.net/midori/+bug/777510
This commit is contained in:
Peter Hatina 2012-04-16 19:22:39 +02:00 committed by Christian Dywan
parent c7c172f7ff
commit 410eabea40

View file

@ -3891,7 +3891,10 @@ _action_search_submit (GtkAction* action,
search = midori_uri_for_search (url, keywords); search = midori_uri_for_search (url, keywords);
if (new_tab) 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 else
midori_browser_set_current_uri (browser, search); midori_browser_set_current_uri (browser, search);