mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 10:10:33 +05:00
Publishing the result of SurfOpt and Cleaner if the output file exists even if the computation has ended in error
This commit is contained in:
parent
d8e62d4397
commit
9b65ce0c47
@ -110,8 +110,14 @@ class MGCleanerMonViewText(Ui_ViewExe, QDialog):
|
|||||||
if exit_code == 0 and not self.anErrorOccured:
|
if exit_code == 0 and not self.anErrorOccured:
|
||||||
self.parent().enregistreResultat()
|
self.parent().enregistreResultat()
|
||||||
elif not self.hasBeenCanceled:
|
elif not self.hasBeenCanceled:
|
||||||
QMessageBox.critical(self, 'Computation failed',
|
if os.path.exists(self.parent().fichierOut):
|
||||||
'The computation has failed.<br>Please, check the log message.')
|
self.parent().enregistreResultat()
|
||||||
|
QMessageBox.critical(self, 'Computation ended in error',
|
||||||
|
'A new mesh has been generated but with some errors.'+
|
||||||
|
'<br>Please, check the log message.')
|
||||||
|
else:
|
||||||
|
QMessageBox.critical(self, 'Computation failed',
|
||||||
|
'The computation has failed.<br>Please, check the log message.')
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def errorOccured(self):
|
def errorOccured(self):
|
||||||
|
@ -109,8 +109,14 @@ class MonViewText(Ui_ViewExe, QDialog):
|
|||||||
if exit_code == 0 and not self.anErrorOccured:
|
if exit_code == 0 and not self.anErrorOccured:
|
||||||
self.parent().enregistreResultat()
|
self.parent().enregistreResultat()
|
||||||
elif not self.hasBeenCanceled:
|
elif not self.hasBeenCanceled:
|
||||||
QMessageBox.critical(self, 'Computation failed',
|
if os.path.exists(self.parent().fichierOut):
|
||||||
'The computation has failed.<br>Please, check the log message.')
|
self.parent().enregistreResultat()
|
||||||
|
QMessageBox.critical(self, 'Computation ended in error',
|
||||||
|
'A new mesh has been generated but with some errors.'+
|
||||||
|
'<br>Please, check the log message.')
|
||||||
|
else:
|
||||||
|
QMessageBox.critical(self, 'Computation failed',
|
||||||
|
'The computation has failed.<br>Please, check the log message.')
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def errorOccured(self):
|
def errorOccured(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user