From 78514b15ee1d8f40bfc6b68594083b81cc7cfa9d Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 21 Jan 2003 11:25:21 +0000 Subject: when the return value of ask_from_ and ask_from is not used, do not have a "Previous ->" or "Cancel" button (beware, black magic here :) --- perl-install/interactive.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index d3710dfca..4f5ab4c44 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -355,11 +355,13 @@ sub ask_from_ { my ($o, $common, $l) = @_; ask_from_normalize($o, $common, $l); @$l or return 1; + $common->{cancel} = '' if !defined wantarray(); ask_from_real($o, $common, $l); } sub ask_from_no_check { my ($o, $common, $l) = @_; ask_from_normalize($o, $common, $l); + $common->{cancel} = '' if !defined wantarray(); $o->ask_fromW($common, partition { !$_->{advanced} } @$l); } sub ask_from_real { -- cgit v1.2.1