[PATCH] Fix which TUI field is being checked for which input (#1169533)

Samantha N. Bueno sbueno+anaconda at redhat.com
Tue Dec 16 17:49:21 UTC 2014


On Tue, Dec 16, 2014 at 11:40:18AM -0500, David Shea wrote:
> The index used by EditTUISpoke.input() is into the fields visible to the
> user, so always use visible_fields.

Ack.

> ---
>  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
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches


More information about the anaconda-patches mailing list