Re: [PATCH 12/14] Change timezone on the map when a different city is chosen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/pyanaconda/ui/gui/spokes/datetime_spoke.py b/pyanaconda/ui/gui/spokes/datetime_spoke.py
> index c519571..488642e 100644
> --- a/pyanaconda/ui/gui/spokes/datetime_spoke.py
> +++ b/pyanaconda/ui/gui/spokes/datetime_spoke.py
> @@ -196,7 +196,24 @@ class DatetimeSpoke(NormalSpoke):
>          self._citiesFilter.refilter()
>  
>      def on_city_changed(self, *args):
> -        pass
> +        timezone = None
> +
> +        regions_model = self._regionCombo.get_model()
> +        regions_iter = self._regionCombo.get_active_iter()
> +        region = regions_model[regions_iter][0]
> +
> +        cities_model = self._cityCombo.get_model()
> +        cities_iter = self._cityCombo.get_active_iter()
> +        if cities_iter: #there can be no city selected

Can there also be no region selected?  If so, regions_iter above is
going to be None.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux