From 65e287ee4a68dcd5019d3fad13b3ebfdd1ef23d4 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 7 Nov 2010 16:35:41 +0100 Subject: First bunch of fixes for the suggestions. We are now respecting users setting on default engines (if someone chooses NONE default search engines, searches are NOT performed) --- src/opensearch/searchengine.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/opensearch') diff --git a/src/opensearch/searchengine.cpp b/src/opensearch/searchengine.cpp index 415e5b35..44e35e33 100644 --- a/src/opensearch/searchengine.cpp +++ b/src/opensearch/searchengine.cpp @@ -74,11 +74,11 @@ void SearchEngine::reload() //load default engine QString d = cg.readEntry("DefaultSearchEngine"); m_defaultEngine = KService::serviceByDesktopPath(QString("searchproviders/%1.desktop").arg(d)); - if (!m_defaultEngine) - { - d = QL1S("google"); - m_defaultEngine = KService::serviceByDesktopPath(QString("searchproviders/%1.desktop").arg(d)); - } +// if (!m_defaultEngine) +// { +// d = QL1S("google"); +// m_defaultEngine = KService::serviceByDesktopPath(QString("searchproviders/%1.desktop").arg(d)); +// } m_loaded = true; } -- cgit v1.2.1