summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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