]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
*** empty log message ***
authorPascale Noyret <pascale.noyret@edf.fr>
Tue, 7 Jul 2009 13:10:51 +0000 (13:10 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Tue, 7 Jul 2009 13:10:51 +0000 (13:10 +0000)
InterfaceQT4/browser.py
InterfaceQT4/viewManager.py

index 785633a0c6930d009f2255051bd9bdda731f7d8f..a4789d9227fc4292bd87fd292a3bf29c5a3c24b1 100644 (file)
@@ -69,6 +69,8 @@ class JDCTree( QTreeWidget ):
         if item.menu == None:
            item.createPopUpMenu()
         if item.menu != None:
+           if item.item.get_nom() == "DISTRIBUTION" and item.item.isvalid() :
+              item.Graphe.setEnabled(1)
            item.menu.exec_(coord)            
             
     def handleOnItem(self,item,int):
index 67e4c75e48e582c905db7e993797bfea4d64a8e2..e4a395633ffbd774de4ee70f81f05854c692b56b 100644 (file)
@@ -59,9 +59,10 @@ class MyTabview:
        if index < 0 : return
        self.checkDirty(self.dict_editors[index])
        index=self.myQtab.currentIndex()
-       while index < len(self.dict_editors) -1 :
-             self.dict_editors[index]=self.dict_editors[index+1]
-             index = index + 1
+       idx=index
+       while idx < len(self.dict_editors) -1 :
+             self.dict_editors[idx]=self.dict_editors[idx+1]
+             idx = idx + 1
        del self.dict_editors[len (self.dict_editors) -1]
        try :
            del self.doubles[self.dict_editors[index]]