X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=InterfaceQT4%2FmonChoixCommande.py;h=a6ac039f7a473a9501e55247628bb4c1466d3d58;hb=68af27699b3d841d7d3b21223cbf4e27e4ddd45c;hp=674ceaeb6b77c9e0b314ce8a2a5b76d26a8e3dd5;hpb=a54fdbf858683f1439bc26f155ece0fec66ae026;p=tools%2Feficas.git diff --git a/InterfaceQT4/monChoixCommande.py b/InterfaceQT4/monChoixCommande.py index 674ceaeb..a6ac039f 100644 --- a/InterfaceQT4/monChoixCommande.py +++ b/InterfaceQT4/monChoixCommande.py @@ -103,6 +103,7 @@ class MonChoixCommande(Ui_ChoixCommandes,QtGui.QWidget): plier=self.editor.afficheCommandesPliees if nodeCourrant==self.node : nouveau=self.node.append_child(self.name,'first',plier) else : nouveau=nodeCourrant.append_brother(self.name,plier=plier) + if nouveau == 0 : return # on n a pas insere le noeud nouveau.setDeplie() #if self.editor.afficheApresInsert==True : nouveau.plieToutEtReaffiche() if self.editor.afficheApresInsert == True : @@ -112,7 +113,6 @@ class MonChoixCommande(Ui_ChoixCommandes,QtGui.QWidget): nouveau.fenetre.donnePremier() #nouveau.deplieToutEtReaffiche() else : - print "je passe la" self.node.setSelected(False) nouveau.setSelected(True) self.node.tree.setCurrentItem(nouveau)