Merge pull request #4909 from troyp76/master

Path: Fixed incorrect usage of isDirty() in the accept button call back.
This commit is contained in:
sliptonic
2021-07-09 09:23:55 -05:00
committed by GitHub

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)