From 12369665f71d17d974bde17202978c737b19be26 Mon Sep 17 00:00:00 2001 From: Wanderlei Antonio Cavassin Date: Tue, 25 Nov 2008 17:33:34 +0000 Subject: Honors $::Wizard_no_cancel when creating ok and cancel buttons. --- perl-install/ugtk2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 2143650a9..47d657209 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -523,7 +523,7 @@ sub create_okcancel { $bprev = $w->{cancel} = gtknew('Button', text => $cancel, clicked => $w->{cancel_clicked} || sub { log::l("default cancel_clicked"); undef $w->{retval}; Gtk2->main_quit }); } - $w->{wizcancel} = gtknew('Button', text => N("Cancel"), clicked => sub { die 'wizcancel' }) if $::isWizard && !$::isInstall; + $w->{wizcancel} = gtknew('Button', text => N("Cancel"), clicked => sub { die 'wizcancel' }) if $::isWizard && !$::isInstall && !$::Wizard_no_cancel;; if (!defined $wm_is_kde) { require any; my $wm = any::running_window_manager(); -- cgit v1.2.1