summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2017-01-13 14:14:36 +0100
committerKai Uwe Broulik <[email protected]>2017-01-13 14:14:36 +0100
commitc47072294589f7033c6e933a381956e3f1c4ae54 (patch)
tree3bfc08c8a032301bae66eda0389292bb7fae581b
parent57c6c9df72e92971a1a4b2b9aaf1ecd3d453c688 (diff)
[Task Manager] Find player if we don't have a PID
This fixes media controls for launchers not working. We don't have a PID for non-windows. Differential Revision: https://phabricator.kde.org/D4106
-rw-r--r--applets/taskmanager/package/contents/ui/main.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/applets/taskmanager/package/contents/ui/main.qml b/applets/taskmanager/package/contents/ui/main.qml
index 0df4f38..9c24612 100644
--- a/applets/taskmanager/package/contents/ui/main.qml
+++ b/applets/taskmanager/package/contents/ui/main.qml
@@ -198,8 +198,7 @@ Item {
continue;
}
var sourceData = data[source];
-
- if (sourceData && sourceData.DesktopEntry === desktopFileName && sourceData.InstancePid === pid) {
+ if (sourceData && sourceData.DesktopEntry === desktopFileName && (pid === undefined || sourceData.InstancePid === pid)) {
return source;
}
}