X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=InterfaceQT4%2FmonWidgetParam.py;h=9e0c8a128d769d6963c7be36a85494af62b827ae;hb=e570dff249a11579eb7d33de376ed71be16d7261;hp=da899ba1e6fe13f2957518428f69a42cb2cf2c20;hpb=45496e147f519f4e64795eff3f414cc65b72c1fd;p=tools%2Feficas.git diff --git a/InterfaceQT4/monWidgetParam.py b/InterfaceQT4/monWidgetParam.py index da899ba1..9e0c8a12 100644 --- a/InterfaceQT4/monWidgetParam.py +++ b/InterfaceQT4/monWidgetParam.py @@ -53,9 +53,12 @@ class MonWidgetParam(Ui_desWidgetParam,QDialog): if val == "" or None : return if nom == "" or None : return print self.editor.tree - if len(self.editor.tree.selectedItems()) == 0 : itemAvant=self.editor.tree.racine - else : itemAvant=self.editor.tree.selectedItems()[0] - param=itemAvant.addParameters(True) + if len(self.editor.tree.selectedItems()) == 0 : + itemAvant=self.editor.tree.racine + param=itemAvant.addParameters(True) + else : + itemAvant=self.editor.tree.selectedItems()[0] + param=itemAvant.addParameters(False) param.item.set_nom(nom) param.item.set_valeur(val) param.update_node_texte()