summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdrakwizard.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/drakwizard.pl b/drakwizard.pl
index 5d606c5e..3fb49513 100755
--- a/drakwizard.pl
+++ b/drakwizard.pl
@@ -20,7 +20,7 @@
use lib qw(/usr/lib/libDrakX);
#use strict;
-use vars qw($wizard_title $lib_script $perl_module %variable $in $rpm $bifield $chooser_hash $wpo);
+use vars qw($wizard_title $lib_script $perl_module %variable $in $rpm $bifield $chooser_hash $welcome);
use XML::Parser;
use standalone;
@@ -109,6 +109,7 @@ sub get_parameter {
$ENV{$leaf->{shellVariable}} = $leaf->{defaultValue};
},
Page => sub {
+ !$welcome and $welcome = $page;
my $old_page = $page;
push @$o, $page = { %$leaf };
$old_page->{next_page} = $page;
@@ -167,7 +168,7 @@ sub find_page {
sub display {
my ($o, $page) = @_;
- if ($page->{no_prev}) {
+ if ($page->{no_prev} || $page->{name} eq $welcome->{name}) {
$::Wizard_no_previous = 1;
}
if ($page->{finish}) {