]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
Fix bug with monFonctionPanel: Removed values did not appear in LineEdit
authorRenaud Barate <renaud.barate@edf.fr>
Thu, 16 Jun 2011 10:56:18 +0000 (10:56 +0000)
committerRenaud Barate <renaud.barate@edf.fr>
Thu, 16 Jun 2011 10:56:18 +0000 (10:56 +0000)
InterfaceQT4/monFonctionPanel.py

index 4d9f2c62d8b1bf5787fa1c330cd0518d95e118db..5c3558fbf424ce8f6527f144e1910c94ce95e1e5 100644 (file)
@@ -173,7 +173,9 @@ class MonFonctionPanel(MonPlusieursBasePanel):
   def Sup1Valeur(self):
         index=self.LBValeurs.currentRow()
         if index == None : return
-        self.LBValeurs.takeItem(index)
+        removed_item = self.LBValeurs.takeItem(index)
+        text = removed_item.text()[1:-1] # Remove the parenthesis
+        self.LEValeur.setText(text)
         listeVal=[]
         indexInterdit=[]
         for i in range(self.nbValeurs):