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
d75bff14
Commit
d75bff14
authored
Jun 11, 2020
by
Alexander Lohnau
💬
Browse files
Fix desktop actions for recently used applications
parent
ba44b69a
Changes
1
Hide whitespace changes
Inline
Side-by-side
applets/kicker/plugin/recentusagemodel.cpp
View file @
d75bff14
...
...
@@ -413,6 +413,14 @@ bool RecentUsageModel::trigger(int row, const QString &actionId, const QVariant
}
return
false
;
}
else
if
(
actionId
==
QLatin1String
(
"_kicker_jumpListAction"
))
{
const
QString
storageId
=
sourceModel
()
->
data
(
sourceModel
()
->
index
(
row
,
0
),
ResultModel
::
ResourceRole
)
.
toString
().
section
(
QLatin1Char
(
':'
),
1
);
KService
::
Ptr
service
=
KService
::
serviceByStorageId
(
storageId
);
service
->
setExec
(
argument
.
toString
());
KIO
::
ApplicationLauncherJob
*
job
=
new
KIO
::
ApplicationLauncherJob
(
service
);
job
->
start
();
return
true
;
}
else
if
(
withinBounds
)
{
const
QString
&
resource
=
resourceAt
(
row
);
...
...
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