From 9ec85ad49d8455281252035143aa9330cb6b61dc Mon Sep 17 00:00:00 2001 From: Franz Fellner Date: Wed, 5 Dec 2012 11:53:56 +0100 Subject: [PATCH] WebSearchBar: Select alls text + set focus after search engine changed. This avoids another (double)click to select the text. --- src/lib/navigation/websearchbar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/navigation/websearchbar.cpp b/src/lib/navigation/websearchbar.cpp index 1361f9472..42a759ac3 100644 --- a/src/lib/navigation/websearchbar.cpp +++ b/src/lib/navigation/websearchbar.cpp @@ -174,6 +174,8 @@ void WebSearchBar::setupEngines() void WebSearchBar::searchChanged(const ButtonWithMenu::Item &item) { + selectAll(); + setFocus(); setPlaceholderText(item.text); m_completerModel->setStringList(QStringList());