Salome HOME
Fix bug when case entry is not set
authorRenaud Barate <renaud.barate@edf.fr>
Wed, 27 Feb 2013 16:46:58 +0000 (17:46 +0100)
committerRenaud Barate <renaud.barate@edf.fr>
Wed, 27 Feb 2013 16:46:58 +0000 (17:46 +0100)
src/salome/parametric/gui/execparams.py

index 70c26c8b2df67045277c15cb168dda96a14eeff0..25968e7bf4253ed57e63fe63ebdf511bf2ebc930 100644 (file)
@@ -89,7 +89,8 @@ class ExecParamsFrame(QtGui.QWidget, Ui_ExecParams):
     if param_study.solver_code_type == ParametricStudy.SALOME_COMPONENT:
       self.salomeComponentRB.setChecked(True)
       self.componentNameLE.setText(param_study.salome_component_name)
-      self.set_case_entry(param_study.solver_case_entry)
+      if param_study.solver_case_entry is not None:
+        self.set_case_entry(param_study.solver_case_entry)
     else:
       self.pythonScriptRB.setChecked(True)
       self.pythonScriptTE.setText(param_study.python_script)