From fdc42fd92d5dd697c1e673a8fd5d611e3dad0141 Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Wed, 27 Feb 2013 17:46:58 +0100 Subject: [PATCH] Fix bug when case entry is not set --- src/salome/parametric/gui/execparams.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/salome/parametric/gui/execparams.py b/src/salome/parametric/gui/execparams.py index 70c26c8..25968e7 100644 --- a/src/salome/parametric/gui/execparams.py +++ b/src/salome/parametric/gui/execparams.py @@ -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) -- 2.39.2