From c91a74c66d9f6adf58bb1d04d1e7f1097d68fa2e Mon Sep 17 00:00:00 2001 From: JunjieBai Date: Fri, 5 May 2023 17:24:05 +0800 Subject: [PATCH] Fix the problem that online applications can not jump to the description page in software center. --- libsearch/appsearch/app-search-plugin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libsearch/appsearch/app-search-plugin.cpp b/libsearch/appsearch/app-search-plugin.cpp index 26c4417..3174d3d 100644 --- a/libsearch/appsearch/app-search-plugin.cpp +++ b/libsearch/appsearch/app-search-plugin.cpp @@ -49,7 +49,8 @@ AppSearchPlugin::AppSearchPlugin(QObject *parent) : QThread(parent), m_appSearch SearchProperty::SearchResultProperty::ApplicationLocalName, SearchProperty::SearchResultProperty::ApplicationIconName, SearchProperty::SearchResultProperty::ApplicationDescription, - SearchProperty::SearchResultProperty::IsOnlineApplication}); + SearchProperty::SearchResultProperty::IsOnlineApplication, + SearchProperty::SearchResultProperty::ApplicationPkgName}); } AppSearchPlugin::~AppSearchPlugin() @@ -200,6 +201,9 @@ void AppSearchPlugin::run() description.value = data.value(SearchProperty::SearchResultProperty::ApplicationDescription).toString(); ri.description.append(description); ri.type = data.value(SearchProperty::SearchResultProperty::IsOnlineApplication).toInt(); + if (ri.type == 1) { + ri.actionKey = data.value(SearchProperty::SearchResultProperty::ApplicationPkgName).toString(); + } m_searchResult->enqueue(ri); }