Commit 7caec0de authored by Fushan Wen's avatar Fushan Wen Committed by Nate Graham
Browse files

taskmanager: Disconnect from backend.showAllPlaces on destruction

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

BUG: 443820

(cherry picked from commit 760f305c)
parent 05528d86
......@@ -52,9 +52,15 @@ PlasmaComponents.ContextMenu {
Component.onCompleted: {
// Cannot have "Connections" as child of PlasmaCoponents.ContextMenu.
backend.showAllPlaces.connect(function() {
visualParent.showContextMenu({showAllPlaces: true});
Component.onDestruction: {
function showContextMenuWithAllPlaces() {
visualParent.showContextMenu({showAllPlaces: true});
function get(modelProp) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment