Moved task panel cleanup into preCleanup to avoid accessing already deleted objects in case of cancel.

This commit is contained in:
Markus Lampert
2017-09-12 13:04:00 -07:00
committed by wmayer
parent a9652ea214
commit 1f0f02de7b

View File

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