summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-01-23 20:35:05 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-01-23 20:35:05 +0000
commitbaab89f6bc846a46ad7836cb7c21263699bcf5db (patch)
tree02ae6f098d85f768807174cc3ec8109385f1efc7 /perl-install
parent71b7afadeda6e77e20d890537fcc0fa2bb1b7fcc (diff)
downloaddrakx-baab89f6bc846a46ad7836cb7c21263699bcf5db.tar
drakx-baab89f6bc846a46ad7836cb7c21263699bcf5db.tar.gz
drakx-baab89f6bc846a46ad7836cb7c21263699bcf5db.tar.bz2
drakx-baab89f6bc846a46ad7836cb7c21263699bcf5db.tar.xz
drakx-baab89f6bc846a46ad7836cb7c21263699bcf5db.zip
add a button to "summary"-like dialog boxes
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/interactive/newt.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/interactive/newt.pm b/perl-install/interactive/newt.pm
index 4bb230534..1088c6efb 100644
--- a/perl-install/interactive/newt.pm
+++ b/perl-install/interactive/newt.pm
@@ -74,6 +74,7 @@ sub ask_fromW {
} elsif ((any { $_->{type} ne 'button' } @$l) || @$l < 5) {
&ask_fromW_real;
} else {
+ $common->{cancel} = N("Do") if $common->{cancel} eq '';
my $r;
do {
my @choices = map {
@@ -83,7 +84,7 @@ sub ask_fromW {
} @$l;
#- replace many buttons with a list
my $new_l = [ { val => \$r, type => 'list', list => \@choices, format => sub { $_[0]{label} }, sort => 0 } ];
- ask_fromW_real($o, $common, $new_l, $l2) or return;
+ ask_fromW_real($o, $common, $new_l, $l2) and return;
} until $r->{clicked_may_quit}->();
1;
}