From: Renaud Barate Date: Wed, 27 Feb 2013 16:46:58 +0000 (+0100) Subject: Fix bug when case entry is not set X-Git-Tag: V7_2_0~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fdc42fd92d5dd697c1e673a8fd5d611e3dad0141;p=modules%2Fparametric.git Fix bug when case entry is not set --- 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)