summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-16 18:07:20 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-16 18:07:20 +0000
commitf889c22d4d72746e06704cd02d3593bd078ee9cd (patch)
treeb5ad28b76d9faaad0815ca9c93e3d67e425838f0 /perl-install/interactive
parentf8c5002658cd61df336e6862376dea73d5c852eb (diff)
downloaddrakx-f889c22d4d72746e06704cd02d3593bd078ee9cd.tar
drakx-f889c22d4d72746e06704cd02d3593bd078ee9cd.tar.gz
drakx-f889c22d4d72746e06704cd02d3593bd078ee9cd.tar.bz2
drakx-f889c22d4d72746e06704cd02d3593bd078ee9cd.tar.xz
drakx-f889c22d4d72746e06704cd02d3593bd078ee9cd.zip
fix dialog box with empty buttons (thanks to Hamster <hamster@hamsternet.org>)
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/newt.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/interactive/newt.pm b/perl-install/interactive/newt.pm
index cd1d25c36..37c5a62ef 100644
--- a/perl-install/interactive/newt.pm
+++ b/perl-install/interactive/newt.pm
@@ -172,7 +172,10 @@ sub ask_fromW {
(exists $common->{ok} ?
($common->{ok}, $common->{cancel}) :
($::isWizard ? _("Next") : _("Ok"), $common->{cancel} || ($::isWizard ? _("<- Previous") : _("Cancel"))));
- my ($buttons, $ok, $cancel) = Newt::Grid::ButtonBar($::isWizard ? ($b2, $b1) : ($b1, $b2));
+ #- b1 is always displayed, so giving it some label :-(
+ $b1 ||= $::isWizard ? _("Next") : _("Ok");
+ my @b2 = if_($b2, $b2);
+ my ($buttons, $ok, $cancel) = Newt::Grid::ButtonBar($::isWizard ? (@b2, $b1) : ($b1, @b2));
($ok, $cancel) = ($cancel, $ok) if $::isWizard;
my $form = Newt::Component::Form(\undef, '', 0);