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 c4e9be172b
commit 8b7834c4e1

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)