From 5e5fc918a9f78c9c838cd73cce58faef9197b947 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 14 Jun 2004 15:04:14 +0000 Subject: (ask_fromW_real) make previous button be labeled "cancel" when needed --- perl-install/interactive/newt.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/interactive/newt.pm b/perl-install/interactive/newt.pm index 80197c779..5a1f22e5d 100644 --- a/perl-install/interactive/newt.pm +++ b/perl-install/interactive/newt.pm @@ -304,7 +304,7 @@ sub ask_fromW_real { }; my ($ok, $cancel) = ($common->{ok}, $common->{cancel}); - $cancel = $::isWizard ? N("Previous") : N("Cancel") if !defined $cancel && !defined $ok; + $cancel = $::isWizard && !$::Wizard_no_previous ? N("Previous") : N("Cancel") if !defined $cancel && !defined $ok; $ok ||= $::isWizard ? ($::Wizard_finished ? N("Finish") : N("Next")) : N("Ok"); my @okcancel = grep { $_ } $ok, $cancel; -- cgit v1.2.1