Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9f2a1b71 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Improve uri look-up

parent 690d62fc
......@@ -64,9 +64,11 @@ static ResultsStream* voidStream() { return new ResultsStream(QStringLiteral("Sn
ResultsStream * SnapBackend::search(const AbstractResourcesBackend::Filters& filters)
{
if (filters.category && filters.category->isAddons())
if ((filters.category && filters.category->isAddons()) || filters.resourceUrl.scheme() != QLatin1String("snap"))
return voidStream();
if (filters.state >= AbstractResource::Installed) {
if (!filters.resourceUrl.isEmpty()) {
return findResourceByPackageName(filters.resourceUrl);
} else if (filters.state >= AbstractResource::Installed) {
return populate(m_client.list(), AbstractResource::Installed);
} else {
return populate(m_client.find(QSnapdClient::FindFlag::None, filters.search), AbstractResource::None);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment