From 1f0f02de7bc58514827f1b44f2b8ff91ecb15991 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Tue, 12 Sep 2017 13:04:00 -0700 Subject: [PATCH] Moved task panel cleanup into preCleanup to avoid accessing already deleted objects in case of cancel. --- src/Mod/Path/PathScripts/PathOpGui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathOpGui.py b/src/Mod/Path/PathScripts/PathOpGui.py index 1bd12e46d6..cac80040cc 100644 --- a/src/Mod/Path/PathScripts/PathOpGui.py +++ b/src/Mod/Path/PathScripts/PathOpGui.py @@ -721,10 +721,10 @@ class TaskPanel(object): def preCleanup(self): FreeCADGui.Selection.removeObserver(self) FreeCADGui.Selection.removeObserver(self.s) + self.obj.ViewObject.Proxy.clearTaskPanel() def cleanup(self, resetEdit): '''cleanup() ... implements common cleanup tasks.''' - self.obj.ViewObject.Proxy.clearTaskPanel() FreeCADGui.Control.closeDialog() if resetEdit: FreeCADGui.ActiveDocument.resetEdit()