Fix toolTipDelegate.virtualDesktopParent

Authored by gladhorn on Jul 2 2019, 7:43 AM.

Description

Fix toolTipDelegate.virtualDesktopParent

Summary:
The logic tried to do an early return, but that doesn't work with ||, so
use && and check if there are >0 elements in the list, otherwise return
a list containing only 0.

This fixes a qml error message:
file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml:375: TypeError: Type error

Reviewers: Plasma, hein

Reviewed By: Plasma, hein

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D22208

Details

Committed
gladhornJul 2 2019, 8:03 AM
Reviewer
Plasma
Differential Revision
D22208: Fix toolTipDelegate.virtualDesktopParent
Parents
R119:d80d3aaebadf: Silence qml error message
Branches
Unknown
Tags
Unknown