X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fsficreate.py;h=b3de732d824010bc79a8988c453aa1b7efa02f1f;hp=b4db34ad9f3aba9b955b0609f24ca1be52bc6105;hb=5ec2151aa80be7897d8e48c4bb8f613c145d0177;hpb=8b3735748e2e19ffab1c814d0cea4b34369f621c 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)