mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 17:00:34 +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,6 +110,12 @@ class MGCleanerMonViewText(Ui_ViewExe, QDialog):
|
||||
if exit_code == 0 and not self.anErrorOccured:
|
||||
self.parent().enregistreResultat()
|
||||
elif not self.hasBeenCanceled:
|
||||
if os.path.exists(self.parent().fichierOut):
|
||||
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
|
||||
|
@ -109,6 +109,12 @@ class MonViewText(Ui_ViewExe, QDialog):
|
||||
if exit_code == 0 and not self.anErrorOccured:
|
||||
self.parent().enregistreResultat()
|
||||
elif not self.hasBeenCanceled:
|
||||
if os.path.exists(self.parent().fichierOut):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user