[PATCH 1/2] Set the _config_dialog property during __init__.

David Shea dshea at redhat.com
Wed Nov 27 17:19:59 UTC 2013


The dialog is still initialized in the DATE_TIME thread, but setting it
to an object in the constructor allows processes that don't wait for the
thread to complete (e.g., run-spoke.py) to use the spoke object right
away.
---
 pyanaconda/ui/gui/spokes/datetime_spoke.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/datetime_spoke.py b/pyanaconda/ui/gui/spokes/datetime_spoke.py
index 285b34a..9b4e187 100644
--- a/pyanaconda/ui/gui/spokes/datetime_spoke.py
+++ b/pyanaconda/ui/gui/spokes/datetime_spoke.py
@@ -348,7 +348,7 @@ class DatetimeSpoke(FirstbootSpokeMixIn, NormalSpoke):
         # taking values from the kickstart file?
         self._kickstarted = flags.flags.automatedInstall
 
-        self._config_dialog = None
+        self._config_dialog = NTPconfigDialog(self.data)
         self._update_datetime_timer_id = None
         self._start_updating_timer_id = None
 
@@ -433,7 +433,6 @@ class DatetimeSpoke(FirstbootSpokeMixIn, NormalSpoke):
         if not flags.can_touch_runtime_system("modify system time and date"):
             self._set_date_time_setting_sensitive(False)
 
-        self._config_dialog = NTPconfigDialog(self.data)
         self._config_dialog.initialize()
 
         time_init_thread = threadMgr.get(constants.THREAD_TIME_INIT)
-- 
1.8.4.2



More information about the anaconda-patches mailing list