summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive/gtk.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-02-20 11:05:20 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-02-20 11:05:20 +0000
commit636107c3857a2be8a60e5936cbbde41ceca4ef75 (patch)
treeecd4c75d4c1f89038eceae3887a213bf0fb0e910 /perl-install/interactive/gtk.pm
parent32482d8439cb8a104d7b1728b437daf2c5ef9efa (diff)
downloaddrakx-636107c3857a2be8a60e5936cbbde41ceca4ef75.tar
drakx-636107c3857a2be8a60e5936cbbde41ceca4ef75.tar.gz
drakx-636107c3857a2be8a60e5936cbbde41ceca4ef75.tar.bz2
drakx-636107c3857a2be8a60e5936cbbde41ceca4ef75.tar.xz
drakx-636107c3857a2be8a60e5936cbbde41ceca4ef75.zip
fix $ok_clicked when there is no ok button
Diffstat (limited to 'perl-install/interactive/gtk.pm')
-rw-r--r--perl-install/interactive/gtk.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index 89b4b8f3d..1473eda75 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -357,7 +357,7 @@ sub ask_fromW {
my $total_size = 0;
my $tooltips = Gtk2::Tooltips->new;
my $ok_clicked = sub {
- $mainw->{ok}->get_property('sensitive') or return;
+ !$mainw->{ok} || $mainw->{ok}->get_property('sensitive') or return;
$mainw->{retval} = 1;
Gtk2->main_quit;
};