Fix toolTipDelegate.virtualDesktopParent
ClosedPublic

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

Details

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

Diff Detail

Repository
R119 Plasma Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
gladhorn created this revision.Jul 2 2019, 7:45 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJul 2 2019, 7:45 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
gladhorn requested review of this revision.Jul 2 2019, 7:45 AM
hein accepted this revision.Jul 2 2019, 7:48 AM
This revision is now accepted and ready to land.Jul 2 2019, 7:48 AM
This revision was automatically updated to reflect the committed changes.