diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-08-16 18:07:20 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-08-16 18:07:20 +0000 |
commit | f889c22d4d72746e06704cd02d3593bd078ee9cd (patch) | |
tree | b5ad28b76d9faaad0815ca9c93e3d67e425838f0 | |
parent | f8c5002658cd61df336e6862376dea73d5c852eb (diff) | |
download | drakx-backup-do-not-use-f889c22d4d72746e06704cd02d3593bd078ee9cd.tar drakx-backup-do-not-use-f889c22d4d72746e06704cd02d3593bd078ee9cd.tar.gz drakx-backup-do-not-use-f889c22d4d72746e06704cd02d3593bd078ee9cd.tar.bz2 drakx-backup-do-not-use-f889c22d4d72746e06704cd02d3593bd078ee9cd.tar.xz drakx-backup-do-not-use-f889c22d4d72746e06704cd02d3593bd078ee9cd.zip |
fix dialog box with empty buttons (thanks to Hamster <hamster@hamsternet.org>)
-rw-r--r-- | perl-install/interactive/newt.pm | 5 |
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); |