Skip to content

Commit

Permalink
Fixed job dialog commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlampert authored and yorikvanhavre committed Jun 26, 2017
1 parent f919345 commit 7773d30
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Mod/Path/PathScripts/PathJob.py
Expand Up @@ -246,20 +246,20 @@ def __init__(self, vobj, deleteOnReject):
self.postProcessorArgsDefaultTooltip = self.form.cboPostProcessorArgs.toolTip()

def accept(self):
PathLog.error('accept')
PathLog.debug('accept')
self.getFields()
FreeCAD.ActiveDocument.commitTransaction()
self.vobj.Proxy.resetTaskPanel()
FreeCADGui.ActiveDocument.resetEdit()
FreeCADGui.Control.closeDialog()
FreeCAD.ActiveDocument.commitTransaction()
FreeCAD.ActiveDocument.recompute()
self.vobj.Proxy.resetTaskPanel()

def reject(self):
PathLog.error('reject')
PathLog.debug('reject')
FreeCADGui.Control.closeDialog()
FreeCAD.ActiveDocument.abortTransaction()
if self.deleteOnReject:
PathLog.error("Uncreate Job")
PathLog.info("Uncreate Job")
FreeCAD.ActiveDocument.openTransaction(translate("Path_Job", "Uncreate Job"))
for child in self.obj.Group:
FreeCAD.ActiveDocument.removeObject(child.Name)
Expand Down

0 comments on commit 7773d30

Please sign in to comment.