diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-18 15:52:23 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-24 23:53:08 +0100 |
commit | 2bffccc63a0edc4979c5ed2831e961d93ebaef1a (patch) | |
tree | 433ea143724753bf222f0fb4bb6cfb8eb5f00e8c | |
parent | 4d476c3dc673142bf7a56eceeb3cbc5500a63846 (diff) | |
download | drakx-2bffccc63a0edc4979c5ed2831e961d93ebaef1a.tar drakx-2bffccc63a0edc4979c5ed2831e961d93ebaef1a.tar.gz drakx-2bffccc63a0edc4979c5ed2831e961d93ebaef1a.tar.bz2 drakx-2bffccc63a0edc4979c5ed2831e961d93ebaef1a.tar.xz drakx-2bffccc63a0edc4979c5ed2831e961d93ebaef1a.zip |
prevent set_sensitive() to be called with undef parameter
(for drakguard)
-rw-r--r-- | perl-install/mygtk3.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm index aa17b71b0..4c9383c8e 100644 --- a/perl-install/mygtk3.pm +++ b/perl-install/mygtk3.pm @@ -131,6 +131,7 @@ sub _gtk { } if (my $sensitive_ref = delete $opts->{sensitive_ref}) { + $$sensitive_ref ||= 0; my $set = sub { $w->set_sensitive($$sensitive_ref) }; gtkval_register($w, $sensitive_ref, $set); $set->(); |