From 01fc1435f20110032f4c5dd2974e1df725e9df54 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Fri, 12 Jun 2009 13:30:05 +0000 Subject: Properly handle hidden variables in installer. --- perl-install/interactive/gtk.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/interactive') 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; }; -- cgit v1.2.1