Bug 443820 - QML error in ContextMenu.qml:56: TypeError: Cannot call method 'showContextMenu' of undefined
Summary: QML error in ContextMenu.qml:56: TypeError: Cannot call method 'showContextMe...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: master
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-16 07:23 UTC by Fushan Wen
Modified: 2021-10-18 16:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.23.1
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-10-16 07:23:32 UTC
SUMMARY
file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/ContextMenu.qml:56: TypeError: Cannot call method 'showContextMenu' of undefined

STEPS TO REPRODUCE
1. Right click on Dolphin in the task manager.
2. Click "X more Places" for at least two times.
3. Watch terminal output.

OBSERVED RESULT
file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/ContextMenu.qml:56: TypeError: Cannot call method 'showContextMenu' of undefined

EXPECTED RESULT
No error occurs.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20211012
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.14.6-2-default (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 7 4700U with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD RENOIR
Comment 1 Bug Janitor Service 2021-10-16 07:31:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/602
Comment 2 Nate Graham 2021-10-18 16:12:07 UTC
Git commit 760f305c8587f783b3fb97fc9bffc9263353d170 by Nate Graham, on behalf of Fushan Wen.
Committed on 18/10/2021 at 16:11.
Pushed by ngraham into branch 'master'.

taskmanager: Disconnect from backend.showAllPlaces on destruction

The slot function explicitly connected to showAllPlaces should be
disconnected manually on destruction.

M  +9    -3    applets/taskmanager/package/contents/ui/ContextMenu.qml

https://invent.kde.org/plasma/plasma-desktop/commit/760f305c8587f783b3fb97fc9bffc9263353d170
Comment 3 Nate Graham 2021-10-18 16:13:10 UTC
Git commit 7caec0de8fe9ca64d015388d957e782c68fc8126 by Nate Graham, on behalf of Fushan Wen.
Committed on 18/10/2021 at 16:13.
Pushed by ngraham into branch 'Plasma/5.23'.

taskmanager: Disconnect from backend.showAllPlaces on destruction

The slot function explicitly connected to showAllPlaces should be
disconnected manually on destruction.


(cherry picked from commit 760f305c8587f783b3fb97fc9bffc9263353d170)

M  +9    -3    applets/taskmanager/package/contents/ui/ContextMenu.qml

https://invent.kde.org/plasma/plasma-desktop/commit/7caec0de8fe9ca64d015388d957e782c68fc8126