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
1c8d9ee9
Commit
1c8d9ee9
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
parent
4a5f4b20
Changes
1
Hide whitespace changes
Inline
Side-by-side
runners/locations/locationrunner.cpp
View file @
1c8d9ee9
...
...
@@ -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
});
...
...
Natalie Clarius
@nclarius
mentioned in commit
80d9f1c8
·
Oct 31, 2022
mentioned in commit
80d9f1c8
mentioned in commit 80d9f1c8e5e816c7f2ff5464379a94d177652191
Toggle commit list
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