These two lists have things on different positions so we cannot use a single
index for both. So while iterating over visible_fields, we should use the index
in combination with visible_fields.
Signed-off-by: Vratislav Podzimek <vpodzime(a)redhat.com>
---
pyanaconda/ui/tui/spokes/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/tui/spokes/__init__.py b/pyanaconda/ui/tui/spokes/__init__.py
index ff5c88c..79292bc 100644
--- a/pyanaconda/ui/tui/spokes/__init__.py
+++ b/pyanaconda/ui/tui/spokes/__init__.py
@@ -301,9 +301,9 @@ class EditTUISpoke(NormalTUISpoke):
try:
idx = int(key) - 1
if idx >= 0 and idx < len(self.visible_fields):
- if self.edit_fields[idx].aux == self.CHECK:
+ if self.visible_fields[idx].aux == self.CHECK:
setdeepattr(self.args, self.visible_fields[idx].attribute,
- not getdeepattr(self.args, self.edit_fields[idx][1]))
+ not getdeepattr(self.args, self.visible_fields[idx][1]))
self.app.redraw()
self.apply()
else:
--
2.1.0
Show replies by date
These two lists have things on different positions so we cannot use a
single
index for both. So while iterating over visible_fields, we should use the index
in combination with visible_fields.
Signed-off-by: Vratislav Podzimek <vpodzime(a)redhat.com>
Looks good.
- Chris