Skip to content

Commit

Permalink
Part: [skip ci] commit and open transaction when clicking Apply in At…
Browse files Browse the repository at this point in the history
…tachment dialog (Python version)
  • Loading branch information
wwmayer committed Mar 23, 2020
1 parent ffb802d commit c32c9d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py
Expand Up @@ -301,6 +301,9 @@ def clicked(self,button):
if button == QtGui.QDialogButtonBox.Apply:
if self.obj_is_attachable:
self.writeParameters()
if self.create_transaction:
self.obj.Document.commitTransaction()
self.obj.Document.openTransaction(_translate('AttachmentEditor',"Edit attachment of {feat}",None).format(feat= self.obj.Name))
self.updatePreview()
if self.callback_Apply:
self.callback_Apply()
Expand Down

0 comments on commit c32c9d5

Please sign in to comment.