From 69646a4169b6478cd43fdf16b3f41abc996eb1b4 Mon Sep 17 00:00:00 2001 From: Wanderlei Antonio Cavassin Date: Tue, 25 Nov 2008 17:51:08 +0000 Subject: avoid to add empty cancel button (thanks blino) --- perl-install/ugtk2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/ugtk2.pm') diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 47d657209..04a4786f1 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -541,7 +541,7 @@ sub create_okcancel { $bprev = gtknew('Label') if !$cancel && $::Wizard_no_previous && !@left && !@right; if ($::isWizard || $w->{pop_it}) { # wizard mode: order is cancel/left_extras/white/right_extras/prev/next - unshift @left, $w->{wizcancel} if !$::isInstall; + unshift @left, $w->{wizcancel} if $w->{wizcancel}; push @right, $bprev, $bok; } else { # normal mode: cancel/ok button follow GNOME's HIG -- cgit v1.2.1