From 75648cf4bcdb245a0e6a2a2d2670b1b42c58eb1c Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Tue, 7 Jul 2009 13:10:51 +0000 Subject: [PATCH] *** empty log message *** --- InterfaceQT4/browser.py | 2 ++ InterfaceQT4/viewManager.py | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/InterfaceQT4/browser.py b/InterfaceQT4/browser.py index 785633a0..a4789d92 100644 --- a/InterfaceQT4/browser.py +++ b/InterfaceQT4/browser.py @@ -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): diff --git a/InterfaceQT4/viewManager.py b/InterfaceQT4/viewManager.py index 67e4c75e..e4a39563 100644 --- a/InterfaceQT4/viewManager.py +++ b/InterfaceQT4/viewManager.py @@ -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]] -- 2.39.2