diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-04-18 01:23:10 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-04-18 01:23:10 +0200 |
commit | 038600ce5f08ec229d187ba34879e7332e7547f6 (patch) | |
tree | c27bb4d048a783d1e8da04c073415275b40a8b8c /src/searchengine.cpp | |
parent | i18n: make sure text passed to i18n() is UTF-8 (diff) | |
download | rekonq-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.cpp | 9 |
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; } |