summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakclock
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-06-20 09:30:04 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-06-20 09:30:44 +0200
commitd55fa70f6c5e3b2212e2eba7d9d97141efe3a4c4 (patch)
tree3546b43c13199b8cd19a03266ccc44cf15a6b7b0 /perl-install/standalone/drakclock
parent2d150597360738d6fdecd24a21d4ce076469b1df (diff)
downloaddrakx-d55fa70f6c5e3b2212e2eba7d9d97141efe3a4c4.tar
drakx-d55fa70f6c5e3b2212e2eba7d9d97141efe3a4c4.tar.gz
drakx-d55fa70f6c5e3b2212e2eba7d9d97141efe3a4c4.tar.bz2
drakx-d55fa70f6c5e3b2212e2eba7d9d97141efe3a4c4.tar.xz
drakx-d55fa70f6c5e3b2212e2eba7d9d97141efe3a4c4.zip
fix loosing TZ choice when canceling TZ selection (mga#13534)
Diffstat (limited to 'perl-install/standalone/drakclock')
-rwxr-xr-xperl-install/standalone/drakclock3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock
index 87820c9d4..4206a11be 100755
--- a/perl-install/standalone/drakclock
+++ b/perl-install/standalone/drakclock
@@ -42,7 +42,8 @@ my @timezones = eval { timezone::getTimeZones() };
my $err = $@;
$button_time->signal_connect(clicked => sub {
local $::isEmbedded = 0; # to prevent sub window embedding
- if ($timezone->{timezone} = $in->ask_from_treelist(N("Timezone - DrakClock"), N("Which is your timezone?"), '/', \@timezones, $timezone->{timezone})) {
+ if (my $tz = $in->ask_from_treelist(N("Timezone - DrakClock"), N("Which is your timezone?"), '/', \@timezones, $timezone->{timezone})) {
+ $timezone->{timezone} = $tz;
$timezone->{UTC} = $in->ask_yesorno(N("GMT - DrakClock"), N("Is your hardware clock set to GMT?"), $timezone->{UTC});
timezone::write($timezone);
$label_timezone->set_text($timezone->{timezone});