From baab89f6bc846a46ad7836cb7c21263699bcf5db Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 23 Jan 2003 20:35:05 +0000 Subject: add a button to "summary"-like dialog boxes --- perl-install/interactive/newt.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/interactive/newt.pm') 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; } -- cgit v1.2.1