Commit 1c8d9ee9 authored by Natalie Clarius's avatar Natalie Clarius Committed by Nate Graham
Browse files

runners/locations: decrease match type when not a known existing file

CCBUG: 340283
parent 4a5f4b20
......@@ -56,7 +56,6 @@ void LocationsRunner::match(Plasma::RunnerContext &context)
if (fileInfo.exists()) {
Plasma::QueryMatch match(this);
match.setType(Plasma::QueryMatch::ExactMatch);
match.setText(i18n("Open %1", context.query()));
match.setIconName(fileInfo.isFile() ? KIO::iconNameForUrl(url) : QStringLiteral("system-file-manager"));
......@@ -68,6 +67,7 @@ void LocationsRunner::match(Plasma::RunnerContext &context)
} else if (!url.isLocalFile() && !url.isEmpty() && !url.scheme().isEmpty()) {
const QString protocol = url.scheme();
Plasma::QueryMatch match(this);
match.setType(Plasma::QueryMatch::PossibleMatch);
match.setData(url);
match.setUrls({url});
......
Supports Markdown
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