From 410eabea4094b5d582bb7779e81d5f2d9281ba52 Mon Sep 17 00:00:00 2001 From: Peter Hatina Date: Mon, 16 Apr 2012 19:22:39 +0200 Subject: [PATCH] Focus search bar tab according to background option Fixes: https://bugs.launchpad.net/midori/+bug/777510 --- midori/midori-browser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index e5450f7d..08679735 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -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);