Salome HOME
sauve du 9 mai
[tools/eficas.git] / InterfaceQT4 / browser.py
index 497a91af4b7d73dfe601c62d0baf0c09a1cd321b..ef81a9854bef6942f3763c33362cb8123fa47076 100644 (file)
@@ -338,14 +338,18 @@ class JDCNode(QTreeWidgetItem,GereRegles):
               return
            self.fenetre=self.getPanel()
          
+        #print "hhhhhhhhhh", self.editor.splitter.sizes()
         for indiceWidget in range(self.editor.widgetCentraleLayout.count()):
             widget=self.editor.widgetCentraleLayout.itemAt(indiceWidget)
             self.editor.widgetCentraleLayout.removeItem(widget)
         # ceinture et bretelle
         #print 'old fenetre = ',self.editor.fenetreCentraleAffichee
+        #print "iiiiiiiiiiiiiii", self.editor.splitter.sizes()
         if self.editor.fenetreCentraleAffichee != None : 
             #print "j enleve ", self.editor.fenetreCentraleAffichee, self.editor.fenetreCentraleAffichee.node.item.nom
             self.editor.widgetCentraleLayout.removeWidget(self.editor.fenetreCentraleAffichee)
+
+            self.editor.fenetreCentraleAffichee.setParent(None)
             self.editor.fenetreCentraleAffichee.close()
 
         self.editor.widgetCentraleLayout.addWidget(self.fenetre)