aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-installer/anaconda/files/0046-update-region-while-city-changes.patch
blob: 733ed98a0a291add17bfa06cfcf0e58ac813f43b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From de687784e07ee7819b6fa7f36f0f051d111a2dc9 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Fri, 9 Sep 2016 13:23:48 -0400
Subject: [PATCH 46/65] update region while city changes

While user select US/Alaska from combobox at first time, the libtimezonemap
convert it to America/Anchorage, and anaconda gui page recognize it as
America/Alaska, the fix make sure region/city could be correctly updated.

Upstream-Status: Pending

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 pyanaconda/ui/gui/spokes/datetime_spoke.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/datetime_spoke.py b/pyanaconda/ui/gui/spokes/datetime_spoke.py
index 7f3569d..ab744bd 100644
--- a/pyanaconda/ui/gui/spokes/datetime_spoke.py
+++ b/pyanaconda/ui/gui/spokes/datetime_spoke.py
@@ -934,7 +934,7 @@ class DatetimeSpoke(FirstbootSpokeMixIn, NormalSpoke):
 
         region = self._get_active_region()
 
-        if not region or region == self._old_region:
+        if not region:
             # region entry being edited or old_value chosen, no action needed
             # @see: on_city_changed
             return
-- 
2.7.4