Commit 80d9f1c8 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

(cherry picked from commit 1c8d9ee9)
parent 0f6cc02d
Pipeline #259006 canceled with stage
......@@ -56,7 +56,6 @@ void LocationsRunner::match(Plasma::RunnerContext &context)
if (fileInfo.exists()) {
Plasma::QueryMatch match(this);
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);
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