summaryrefslogtreecommitdiff
path: root/src/urlbar/urlsuggester.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-04-28 12:03:34 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-04-28 12:03:34 +0200
commit19d72dc2010bca77bfbca966f2c58c589e782edd (patch)
tree20e0ded039a46a951dae6e785763f435c188be00 /src/urlbar/urlsuggester.cpp
parentWell... get EXTREMELY sure menubar are registered... (diff)
downloadrekonq-19d72dc2010bca77bfbca966f2c58c589e782edd.tar.xz
Revert "Use kurifilter instead of custom rekonq code."
This reverts commit 5d1a223145be0eb1bb5eed76cda7d4b889d986ed. Conflicts: src/searchengine.cpp src/urlresolver.cpp
Diffstat (limited to 'src/urlbar/urlsuggester.cpp')
-rw-r--r--src/urlbar/urlsuggester.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/urlbar/urlsuggester.cpp b/src/urlbar/urlsuggester.cpp
index 9ca4e8f8..d6aaaf52 100644
--- a/src/urlbar/urlsuggester.cpp
+++ b/src/urlbar/urlsuggester.cpp
@@ -321,6 +321,7 @@ void UrlSuggester::computeWebSearches()
KService::Ptr engine = SearchEngine::fromString(_typedString);
if (engine)
{
+ query = query.remove(0, _typedString.indexOf(SearchEngine::delimiter()) + 1);
_isKDEShortUrl = true;
}
else
@@ -330,7 +331,7 @@ void UrlSuggester::computeWebSearches()
if (engine)
{
- UrlSuggestionItem item = UrlSuggestionItem(UrlSuggestionItem::Search, SearchEngine::buildQuery(query), query, engine->name());
+ UrlSuggestionItem item = UrlSuggestionItem(UrlSuggestionItem::Search, SearchEngine::buildQuery(engine, query), query, engine->name());
UrlSuggestionList list;
list << item;
_webSearches = list;