diff options
Diffstat (limited to 'perl-install/wizards.pm')
-rw-r--r-- | perl-install/wizards.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/wizards.pm b/perl-install/wizards.pm index 18083c4d7..4ef29fc4e 100644 --- a/perl-install/wizards.pm +++ b/perl-install/wizards.pm @@ -154,7 +154,7 @@ sub process { } my $name = ref($page->{name}) ? $page->{name}->() : $page->{name}; my %yesno = (yes => N("Yes"), no => N("No")); - my $yes = $page->{default}; + my $yes = ref($page->{default}) eq 'CODE' ? $page->{default}->() : $page->{default}; $data2 = [ { val => \$yes, type => 'list', list => [ keys %yesno ], format => sub { $yesno{$_[0]} }, gtk => { use_boxradio => 1 } } ] if $page->{type} eq "yesorno"; my $a; |