diff --git a/libsearch/global-settings.cpp b/libsearch/global-settings.cpp index 1951599..44cb0ff 100644 --- a/libsearch/global-settings.cpp +++ b/libsearch/global-settings.cpp @@ -127,7 +127,7 @@ GlobalSettings::GlobalSettings(QObject *parent) : QObject(parent) setValue(FILE_INDEX_ENABLE_KEY, m_searchGsettings->get(FILE_INDEX_ENABLE_KEY).toBool()); } if(m_searchGsettings->keys().contains(WEB_ENGINE_KEY)) { - setValue(WEB_ENGINE_KEY, m_searchGsettings->get(WEB_ENGINE_KEY).toBool()); + setValue(WEB_ENGINE_KEY, m_searchGsettings->get(WEB_ENGINE_KEY).toString()); } if(m_searchGsettings->keys().contains(CONTENT_FUZZY_SEARCH_KEY)) { setValue(CONTENT_FUZZY_SEARCH_KEY, m_searchGsettings->get(CONTENT_FUZZY_SEARCH_KEY).toBool()); diff --git a/libsearch/websearch/web-search-plugin.cpp b/libsearch/websearch/web-search-plugin.cpp index 925d9c0..fc411bc 100644 --- a/libsearch/websearch/web-search-plugin.cpp +++ b/libsearch/websearch/web-search-plugin.cpp @@ -64,7 +64,7 @@ QList UkuiSearch::WebSearchPlugin::ge void UkuiSearch::WebSearchPlugin::openAction(int actionkey, QString key, int type) { QString address; - QString engine = GlobalSettings::getInstance()->getValue("web_engine").toString(); + QString engine = GlobalSettings::getInstance()->getValue("webEngine").toString(); if(!engine.isEmpty()) { if(engine == "360") { address = "https://so.com/s?q=" + m_keyWord; //360