summaryrefslogtreecommitdiffstats
path: root/perl-install/wizards.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/wizards.pm')
-rw-r--r--perl-install/wizards.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/wizards.pm b/perl-install/wizards.pm
index 9fdc33a1e..0c1ff4917 100644
--- a/perl-install/wizards.pm
+++ b/perl-install/wizards.pm
@@ -155,11 +155,16 @@ sub process {
my %yesno = (yes => N("Yes"), no => N("No"));
my $yes;
$data2 = [ { val => \$yes, type => 'list', list => [ values %yesno ], gtk => { use_boxradio => 1 } } ] if $page->{type} eq "yesorno";
- my $a = $in->ask_from_({ title => $o->{name},
+ my $a;
+ if (ref $data2 eq 'ARRAY' && @$data2) {
+ $a = $in->ask_from_({ title => $o->{name},
messages => $name,
callbacks => { map { $_ => $page->{$_} || $default_callback{$_} } qw(focus_out complete) },
if_($page->{interactive_help_id}, interactive_help_id => $page->{interactive_help_id}),
}, $data2);
+ } else {
+ $a = $in->ask_okcancel($o->{name}, $name);
+ }
# interactive->ask_yesorno does not support stepping forward or backward:
$a = $yes if $a && $page->{type} eq "yesorno";
if ($a) {