summaryrefslogtreecommitdiff
path: root/src/urlbar/listitem.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/listitem.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/listitem.cpp')
-rw-r--r--src/urlbar/listitem.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp
index cc0bf253..580eea53 100644
--- a/src/urlbar/listitem.cpp
+++ b/src/urlbar/listitem.cpp
@@ -460,7 +460,12 @@ void SearchListItem::changeSearchEngine(KService::Ptr engine)
// NOTE: This to let rekonq loading text typed in the requested engine on click.
// There probably is a better way to do it. I just cannot see it now...
- QString text = m_text;
+ // remove the xx: part...
+ QString separator = SearchEngine::delimiter();
+
+ QString text = m_text.contains(separator)
+ ? m_text.section(separator, 1, 1)
+ : m_text;
// create a new item && load it...
UrlSuggestionItem item = UrlSuggestionItem(UrlSuggestionItem::Search, SearchEngine::buildQuery(engine, text), text);