summaryrefslogtreecommitdiff
path: root/src/opensearch/searchengine.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-03-12 05:51:58 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-03-25 09:27:25 +0200
commitaa154a00c29dc5ab9cf07f933cae5cee32614bed (patch)
treed8a185e7c2688ad0377c7da107c229fa4dc60042 /src/opensearch/searchengine.cpp
parentSafe one bool check :D (diff)
downloadrekonq-aa154a00c29dc5ab9cf07f933cae5cee32614bed.tar.xz
Check if user has a default search engine set and eventually
show a messagewidget to inform and let him set it. REVIEW:104290
Diffstat (limited to 'src/opensearch/searchengine.cpp')
-rw-r--r--src/opensearch/searchengine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opensearch/searchengine.cpp b/src/opensearch/searchengine.cpp
index b54d9434..aef06a7b 100644
--- a/src/opensearch/searchengine.cpp
+++ b/src/opensearch/searchengine.cpp
@@ -37,6 +37,7 @@
#include <KConfigGroup>
#include <KServiceTypeTrader>
+
struct SearchEnginePrivate
{
SearchEnginePrivate() : isLoaded(false) {}
@@ -46,8 +47,10 @@ struct SearchEnginePrivate
KService::Ptr defaultEngine;
};
+
K_GLOBAL_STATIC(SearchEnginePrivate, d)
+
void SearchEngine::reload()
{
KConfig config("kuriikwsfilterrc"); //Shared with konqueror