Bug 446095 - QML error in ExpandedRepresentation.qml:198: TypeError: Cannot read property 'Desktop Icon Name' of undefined
Summary: QML error in ExpandedRepresentation.qml:198: TypeError: Cannot read property ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Media Player widget (other bugs)
Version First Reported In: master
Platform: openSUSE Linux
: NOR minor
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-26 01:21 UTC by Fushan Wen
Modified: 2021-12-01 00:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.24
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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