Fixed an issue populating the variables filter dialog properly.

Wed, 14 Sep 2016 18:36:43 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 14 Sep 2016 18:36:43 +0200
changeset 5166
5de86adef66d
parent 5165
37691caeec1a
child 5168
e4a11c02374a

Fixed an issue populating the variables filter dialog properly.

Debugger/VariablesFilterDialog.py file | annotate | diff | comparison | revisions
diff -r 37691caeec1a -r 5de86adef66d Debugger/VariablesFilterDialog.py
--- a/Debugger/VariablesFilterDialog.py	Tue Sep 13 19:27:42 2016 +0200
+++ b/Debugger/VariablesFilterDialog.py	Wed Sep 14 18:36:43 2016 +0200
@@ -64,14 +64,14 @@
         """
         lList = []
         gList = []
-        for i in range(self.localsList.count()):
-            itm = self.localsList.item(i)
+        for row in range(self.localsList.count()):
+            itm = self.localsList.item(row)
             if itm.isSelected():
-                lList.append(i)
-        for i in range(self.globalsList.count()):
-            itm = self.globalsList.item(i)
+                lList.append(row)
+        for row in range(self.globalsList.count()):
+            itm = self.globalsList.item(row)
             if itm.isSelected():
-                gList.append(i)
+                gList.append(row)
         return (lList, gList)
         
     def setSelection(self, lList, gList):
@@ -81,12 +81,12 @@
         @param lList local variables filter (list of int)
         @param gList global variables filter (list of int)
         """
-        for filterIndex in lList:
-            itm = self.localsList.item(filterIndex)
-            itm.setSelected(True)
-        for filterIndex in gList:
-            itm = self.globalsList.item(filterIndex)
-            itm.setSelected(True)
+        for row in range(self.localsList.count()):
+            itm = self.localsList.item(row)
+            itm.setSelected(row in lList)
+        for row in range(self.globalsList.count()):
+            itm = self.globalsList.item(row)
+            itm.setSelected(row in gList)
 
     def on_buttonBox_clicked(self, button):
         """

eric ide

mercurial