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
1f470c4d
Commit
1f470c4d
authored
Nov 14, 2020
by
Alexander Lohnau
💬
Browse files
Remove check for defunct RunnerContext::Type
The concept is deprecated and the value is nowhere inside of KRunner set.
parent
7074a4d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
runners/locations/locationrunner.cpp
View file @
1f470c4d
...
...
@@ -76,16 +76,6 @@ void LocationsRunner::match(Plasma::RunnerContext &context)
match
.
setId
(
QStringLiteral
(
"openfile"
));
}
context
.
addMatch
(
match
);
}
else
if
(
type
==
Plasma
::
RunnerContext
::
Help
)
{
//qDebug() << "Locations matching because of" << type;
Plasma
::
QueryMatch
match
(
this
);
match
.
setType
(
Plasma
::
QueryMatch
::
ExactMatch
);
match
.
setText
(
i18n
(
"Open %1"
,
term
));
match
.
setIconName
(
QStringLiteral
(
"system-help"
));
match
.
setRelevance
(
1
);
match
.
setType
(
Plasma
::
QueryMatch
::
ExactMatch
);
match
.
setId
(
QStringLiteral
(
"help"
));
context
.
addMatch
(
match
);
}
else
if
(
type
==
Plasma
::
RunnerContext
::
NetworkLocation
||
type
==
Plasma
::
RunnerContext
::
UnknownType
)
{
const
bool
filtered
=
KUriFilter
::
self
()
->
filterUri
(
term
,
QStringList
()
<<
QStringLiteral
(
"kshorturifilter"
));
...
...
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