From d7070516650e9329d2175236bb29dbb38abc207a Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 3 Jul 2020 00:43:40 +0100 Subject: [PATCH] Clear canvas selection when deleting plugin, fixing assertions Signed-off-by: falkTX --- source/frontend/patchcanvas/patchcanvas.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/frontend/patchcanvas/patchcanvas.py b/source/frontend/patchcanvas/patchcanvas.py index c117ffaf9..b3703bab8 100644 --- a/source/frontend/patchcanvas/patchcanvas.py +++ b/source/frontend/patchcanvas/patchcanvas.py @@ -1045,6 +1045,8 @@ def handlePluginRemoved(plugin_id): if canvas.debug: print("PatchCanvas::handlePluginRemoved(%i)" % plugin_id) + canvas.scene.clearSelection() + group = canvas.group_plugin_map.pop(plugin_id, None) if group is not None: