View | Details | Raw Unified | Return to bug 617861
Collapse All | Expand All

(-)dialogs.ycp (-1 / +18 lines)
Lines 42-47 Link Here
42
  // if packages for NTP configuration are installed
42
  // if packages for NTP configuration are installed
43
  boolean ntp_installed		= false;
43
  boolean ntp_installed		= false;
44
44
45
  // when checking for NTP status for first time, check the service status
46
  boolean ntp_first_time	= true;
47
45
  /**
48
  /**
46
   * helper function for seting the time related stuff in module and possibly
49
   * helper function for seting the time related stuff in module and possibly
47
   * adapting current time according to it
50
   * adapting current time according to it
Lines 264-270 Link Here
264
    ntp_rb = (boolean) ntp_call ("ui_init", $[
267
    ntp_rb = (boolean) ntp_call ("ui_init", $[
265
				     "replace_point": `id (`rp),
268
				     "replace_point": `id (`rp),
266
				     "country" : Language::GetLanguageCountry(),
269
				     "country" : Language::GetLanguageCountry(),
267
				     /*WTF*/"first_time" : true ]);
270
				     "first_time" : ntp_first_time ]);
271
    ntp_first_time	= false;
268
    UI::ChangeWidget(`id(`rb), `CurrentButton, (ntp_rb ? `ntp : `manual));
272
    UI::ChangeWidget(`id(`rb), `CurrentButton, (ntp_rb ? `ntp : `manual));
269
273
270
    if (!dt_widgets)
274
    if (!dt_widgets)
Lines 766-771 Link Here
766
	}
770
	}
767
	else if (ret == `settime)
771
	else if (ret == `settime)
768
	{
772
	{
773
	    // timezone was not adapted in ncurses (bnc#617861)
774
	    if (textmode)
775
	    {
776
		string tz		= selected_timezone ();
777
		if (tz != timezone)
778
		{
779
		    timezone	= tz;
780
		    if (timezone != timezone_old)
781
			changed_time	= true;
782
		    timezone_old	= timezone;
783
		    SetTimezone (hwclock_s, timezone, false, changed_time);
784
		}
785
	    }
769
	    if (SetTimeDialog())
786
	    if (SetTimeDialog())
770
	    {
787
	    {
771
		Timezone::diff = 0;
788
		Timezone::diff = 0;

Return to bug 617861