summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive/newt.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/interactive/newt.pm')
-rw-r--r--perl-install/interactive/newt.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/interactive/newt.pm b/perl-install/interactive/newt.pm
index 427524668..5b6c02005 100644
--- a/perl-install/interactive/newt.pm
+++ b/perl-install/interactive/newt.pm
@@ -316,7 +316,7 @@ sub ask_fromW_real {
my ($need_to_die);
if (!defined $cancel && !defined $ok) {
$cancel = $::isWizard && !$::Wizard_no_previous ? N("Previous") : N("Cancel") ;
- $need_to_die = 1;
+ $need_to_die = 1 if !($::isWizard && !$::Wizard_no_previous);
}
$ok ||= $::isWizard ? ($::Wizard_finished ? N("Finish") : N("Next")) : N("Ok");
@@ -377,7 +377,7 @@ sub ask_fromW_real {
$form->FormDestroy;
Newt::PopWindow();
- die 'wizcancel' if $need_to_die;
+ die 'wizcancel' if $need_to_die && $canceled;
!$canceled;
}