D22208: Fix toolTipDelegate.virtualDesktopParent

2019-07-02 Thread Frederik Gladhorn
This revision was automatically updated to reflect the committed changes.
Closed by commit R119:b7affafa425b: Fix toolTipDelegate.virtualDesktopParent 
(authored by gladhorn).

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D22208?vs=60987&id=60990

REVISION DETAIL
  https://phabricator.kde.org/D22208

AFFECTED FILES
  applets/taskmanager/package/contents/ui/Task.qml

To: gladhorn, #plasma, hein
Cc: plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, 
ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, 
apol, mart


D22208: Fix toolTipDelegate.virtualDesktopParent

2019-07-02 Thread Frederik Gladhorn
gladhorn created this revision.
gladhorn added a reviewer: Plasma.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
gladhorn requested review of this revision.

REVISION 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

REPOSITORY
  R119 Plasma Desktop

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D22208

AFFECTED FILES
  applets/taskmanager/package/contents/ui/Task.qml

To: gladhorn, #plasma
Cc: plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, 
ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, 
apol, mart