Fix the problem that online applications can not jump to the description page in software center.
This commit is contained in:
parent
df3332046f
commit
c91a74c66d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue