From: Pascale Noyret Date: Tue, 7 Jul 2009 13:10:51 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V1_0OpenTurns~77 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=75648cf4bcdb245a0e6a2a2d2670b1b42c58eb1c;p=modules%2Feficas.git *** empty log message *** --- 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]]