summaryrefslogtreecommitdiff
path: root/src/urlbar/completionwidget.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-05-22 11:40:24 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-05-22 11:40:24 +0200
commite7ae1cc2dfc43cf4e6cc902434b769d120958b93 (patch)
tree6321f567af36c6591f8ebe61fdaf5a6c4b13bd4a /src/urlbar/completionwidget.cpp
parentselect the correct engine in the engine bar when a webshortcut is typed (diff)
downloadrekonq-e7ae1cc2dfc43cf4e6cc902434b769d120958b93.tar.xz
keep the selected engine when the user types
reset to default engine when the completionwidget is shown
Diffstat (limited to 'src/urlbar/completionwidget.cpp')
-rw-r--r--src/urlbar/completionwidget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/urlbar/completionwidget.cpp b/src/urlbar/completionwidget.cpp
index 9a5c9432..acec2d4f 100644
--- a/src/urlbar/completionwidget.cpp
+++ b/src/urlbar/completionwidget.cpp
@@ -68,6 +68,11 @@ CompletionWidget::CompletionWidget(QWidget *parent)
void CompletionWidget::insertSearchList(const UrlSearchList &list, const QString& text)
{
+ if (!isVisible())
+ {
+ _searchEngine = SearchEngine::defaultEngine();
+ }
+
_list = list;
int i = 0;
foreach(const UrlSearchItem &item, _list)