Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
80d9f1c8
Commit
80d9f1c8
authored
Sep 28, 2022
by
Natalie Clarius
Committed by
Nate Graham
Oct 31, 2022
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
runners/locations/locationrunner.cpp
View file @
80d9f1c8
...
...
@@ -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
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment