summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
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/interactive
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/interactive')
-rw-r--r--perl-install/interactive/gtk.pm2
1 files changed, 1 insertions, 1 deletions
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;
};