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()