Skip to content

Commit

Permalink
FEM: Make sure Edit/Run buttons stay disabled if ccxInpWriter didn't …
Browse files Browse the repository at this point in the history
…generate .inp file

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
  • Loading branch information
PrzemoF authored and wwmayer committed Apr 27, 2015
1 parent ed82676 commit 5e48d62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Mod/Fem/MechanicalAnalysis.py
Expand Up @@ -388,8 +388,9 @@ def write_input_file_handler(self):
raise
finally:
QApplication.restoreOverrideCursor()
self.form.pushButton_edit.setEnabled(True)
self.form.pushButton_generate.setEnabled(True)
if self.base_name:
self.form.pushButton_edit.setEnabled(True)
self.form.pushButton_generate.setEnabled(True)

def check_prerequisites(self):
self.Start = time.time()
Expand Down

0 comments on commit 5e48d62

Please sign in to comment.