Bug 446095

Summary: QML error in ExpandedRepresentation.qml:198: TypeError: Cannot read property 'Desktop Icon Name' of undefined
Product: [Plasma] plasmashell Reporter: Fushan Wen <qydwhotmail>
Component: Media Player widgetAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED FIXED    
Severity: minor CC: plasma-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.24
Sentry Crash Report:

Description Fushan Wen 2021-11-26 01:21:15 UTC
SUMMARY
file:///usr/share/plasma/plasmoids/org.kde.plasma.mediacontroller/contents/ui/ExpandedRepresentation.qml:198: TypeError: Cannot read property 'Desktop Icon Name' of undefined

STEPS TO REPRODUCE
1. Add media player applet to desktop
2. Restart plasmashell in a console
3. Watch the output
Comment 1 Fushan Wen 2021-12-01 00:14:18 UTC
Git commit ac565420444f67f0efb7c9f853d0f92689864311 by Fushan Wen.
Committed on 30/11/2021 at 23:57.
Pushed by fusionfuture into branch 'master'.

applets/mediacontroller: Move PlaceholderMessage to albumRow and load it on demand

1. placeholderMessage and fallbackIconItem are put in the same Loader and
   loaded on demand, and they share the same icon property.
2. When getting "Desktop Icon Name", check if `mpris2Source.currentData` is
   available first.
3. Hide the details column when no track is available.
Related: bug 444322
FIXED-IN: 5.24

M  +32   -19   applets/mediacontroller/contents/ui/ExpandedRepresentation.qml

https://invent.kde.org/plasma/plasma-workspace/commit/ac565420444f67f0efb7c9f853d0f92689864311