summaryrefslogtreecommitdiff
path: root/src/searchengine.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-04-18 01:23:10 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-04-18 01:23:10 +0200
commit038600ce5f08ec229d187ba34879e7332e7547f6 (patch)
treec27bb4d048a783d1e8da04c073415275b40a8b8c /src/searchengine.cpp
parenti18n: make sure text passed to i18n() is UTF-8 (diff)
downloadrekonq-038600ce5f08ec229d187ba34879e7332e7547f6.tar.xz
Fix KUriFilter use
Now (again) kde.org is resolved as site and not searched in your default search engine
Diffstat (limited to 'src/searchengine.cpp')
-rw-r--r--src/searchengine.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/searchengine.cpp b/src/searchengine.cpp
index 40e26f42..b4a96cd9 100644
--- a/src/searchengine.cpp
+++ b/src/searchengine.cpp
@@ -33,6 +33,8 @@
#include <KServiceTypeTrader>
#include <KUriFilter>
+#include <QStringList>
+
struct SearchEnginePrivate
{
@@ -49,6 +51,7 @@ struct SearchEnginePrivate
K_GLOBAL_STATIC(SearchEnginePrivate, d)
+
void SearchEngine::reload()
{
KConfig config("kuriikwsfilterrc"); //Shared with konqueror
@@ -150,11 +153,7 @@ KService::Ptr SearchEngine::fromString(const QString &text)
QString SearchEngine::buildQuery(const QString &text)
{
QString query = text;
- KUriFilter::self()->filterUri(query, QStringList("kurisearchfilter"));
-
- //If the query did not change, use the default searchengine
- if(query == text)
- KUriFilter::self()->filterUri(query, QStringList("kuriikwsfilter"));
+ KUriFilter::self()->filterUri(query, QStringList());
return query;
}