summaryrefslogtreecommitdiff
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
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
-rw-r--r--src/searchengine.cpp9
-rw-r--r--src/searchengine.h1
2 files changed, 5 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;
}
diff --git a/src/searchengine.h b/src/searchengine.h
index 6d617250..9bc029a6 100644
--- a/src/searchengine.h
+++ b/src/searchengine.h
@@ -56,6 +56,7 @@ QString buildQuery(const QString &text);
QString buildQuery(KService::Ptr engine, const QString &text);
QString extractQuery(const QString &text);
+
}
#endif