PATH: Prevent Job creation without Base object.

PathMillFace won't add a base if it isn't known to the parent
This commit is contained in:
sliptonic
2016-11-19 17:05:41 -06:00
parent bafbd27632
commit 4c66748ade
2 changed files with 8 additions and 0 deletions

View File

@@ -243,6 +243,9 @@ class TaskPanel:
self.postProcessorArgsDefaultTooltip = self.form.cboPostProcessorArgs.toolTip()
def accept(self):
if self.obj.Base is None:
QtGui.QMessageBox.information(None,"","No Base Object Selected.")
return
self.getFields()
FreeCADGui.ActiveDocument.resetEdit()
FreeCADGui.Control.closeDialog()