diff --git a/applets/taskmanager/package/contents/ui/ToolTipDelegate.qml b/applets/taskmanager/package/contents/ui/ToolTipDelegate.qml --- a/applets/taskmanager/package/contents/ui/ToolTipDelegate.qml +++ b/applets/taskmanager/package/contents/ui/ToolTipDelegate.qml @@ -216,7 +216,7 @@ ToolTipWindowMouseArea { anchors.fill: parent modelIndex: tasksModel.makeModelIndex(parentIndex) - winId: windows != undefined ? (windows[0] || 0) : 0 + winId: windows ? (windows[0] || 0) : 0 } } @@ -227,7 +227,7 @@ height: thumbnailHeight // if there's no window associated with this task, we might still be able to raise the player - visible: windows == undefined || !windows[0] && mpris2Source.canRaise + visible: (!windows || !windows[0]) && canRaise onClicked: mpris2Source.raise() PlasmaCore.IconItem {