X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fsficreate.py;h=b3de732d824010bc79a8988c453aa1b7efa02f1f;hp=b4db34ad9f3aba9b955b0609f24ca1be52bc6105;hb=15540d2bd90c8ca8f5d285bd5a76560448b342ba;hpb=9e7839877d1fe013161b0bbe7d76792a13dc8c62 diff --git a/sface/sficreate.py b/sface/sficreate.py index b4db34a..b3de732 100644 --- a/sface/sficreate.py +++ b/sface/sficreate.py @@ -79,15 +79,14 @@ class CreateWindow(QDialog): self.status.setText(x) def createFinished(self): - if self.createProcess.faults==[]: - # need to check for success/failure + faultString = self.createProcess.getFaultString() + if not faultString: self.setStatus("Slice created.") self.sliceWasCreated = True self.buttonBox.setEnabled(True) self.buttonBox.clear() self.buttonBox.addButton(QDialogButtonBox.Close) else: - faultString = self.createProcess.faults[0].get("faultString","") self.setStatus("Slice creation failed: %s" % (faultString)) self.sliceWasCreated = False self.buttonBox.setEnabled(True)