summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-06-12 13:30:05 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-06-12 13:30:05 +0000
commit01fc1435f20110032f4c5dd2974e1df725e9df54 (patch)
treeb42641c4e1b3469e560f9f864bf4dd354bd1d55b /perl-install
parentb68c26cfac4d76d9415d4953daf81d5e715ed9aa (diff)
downloaddrakx-backup-do-not-use-01fc1435f20110032f4c5dd2974e1df725e9df54.tar
drakx-backup-do-not-use-01fc1435f20110032f4c5dd2974e1df725e9df54.tar.gz
drakx-backup-do-not-use-01fc1435f20110032f4c5dd2974e1df725e9df54.tar.bz2
drakx-backup-do-not-use-01fc1435f20110032f4c5dd2974e1df725e9df54.tar.xz
drakx-backup-do-not-use-01fc1435f20110032f4c5dd2974e1df725e9df54.zip
Properly handle hidden variables in installer.
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/interactive/gtk.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index d744d739b..b7fd1bd75 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,5 @@
+- properly handle hidden variables in installer.
+
Version 12.38 - 12 Jun 2009
- use Hal list of recovery partitions (#51532)
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index 5b9200ed8..4a93934e1 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -661,7 +661,7 @@ sub create_widgets {
my @all = all_entries($l);
$_->{set}->(${$_->{val}}, $_) foreach @all; #- nb: the parameter "$_" is needed for create_boxradio
$_->{disabled} and $_->{real_w}->set_sensitive(!$_->{disabled}()) foreach @all;
- $_->{hidden} and $_->{w}->set_visibility(!$_->{hidden}()) foreach @all;
+ $_->{hidden} and $_->{w}->set_visibility(!(ref($_->{hidden}) eq 'CODE' ? $_->{hidden}() : $_->{hidden})) foreach @all;
$mainw->{ok}->set_sensitive(!$common->{ok_disabled}()) if $common->{ok_disabled};
$ignore = 0;
};