From c749aa7b83b0ebe035d04a6451276f19393fce74 Mon Sep 17 00:00:00 2001 From: iaom Date: Fri, 9 Dec 2022 18:00:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=AE=BE=E7=BD=AE=E7=BD=91?= =?UTF-8?q?=E7=BB=9C=E6=90=9C=E7=B4=A2=E5=BC=95=E6=93=8E=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libsearch/global-settings.cpp | 2 +- libsearch/websearch/web-search-plugin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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