Operations were being recalculated even if the dirty state was False.

The "isDirty" function was not being called correctly by the accept call back.
This commit is contained in:
troyp76
2021-07-06 00:22:15 +10:00
parent 909dfa7036
commit f8c65989f9

View File

@@ -1113,7 +1113,7 @@ class TaskPanel(object):
def accept(self, resetEdit=True):
'''accept() ... callback invoked when user presses the task panel OK button.'''
self.preCleanup()
if self.isDirty:
if self.isDirty():
self.panelGetFields()
FreeCAD.ActiveDocument.commitTransaction()
self.cleanup(resetEdit)