diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-11-10 14:38:37 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-11-10 14:38:37 +0000 |
commit | 50e8254c92b123298dbb85c79b82b44db0ad746d (patch) | |
tree | b5cddb743a5ebb09770d11e5d5be483f83f24f0e | |
parent | d88b3252740f8e3ce8413bd0556d354cdf3d0ed9 (diff) | |
download | mgaonline-50e8254c92b123298dbb85c79b82b44db0ad746d.tar mgaonline-50e8254c92b123298dbb85c79b82b44db0ad746d.tar.gz mgaonline-50e8254c92b123298dbb85c79b82b44db0ad746d.tar.bz2 mgaonline-50e8254c92b123298dbb85c79b82b44db0ad746d.tar.xz mgaonline-50e8254c92b123298dbb85c79b82b44db0ad746d.zip |
(confirm_)fix a crash (#55346)
rationale: gtk+ may fire a signal before $box is initialized
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | mdkapplet | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,6 @@ - mdkapplet o add version to distribution list requests + o fix a crash (#55346) - mdkapplet-upgrade-helper o make sure utf8.pm is loaded before starting an upgrade (#55090) @@ -440,7 +440,7 @@ sub confirm_upgrade() { gtknew('CheckButton', text => N("Download all packages at once") . "\n" . N("(Warning: You will need quite a lot of free space)"), active_ref => \$download_all, sensitive_ref => \$browse, - toggled => sub { $box->set_sensitive($download_all) }, + toggled => sub { $box and $box->set_sensitive($download_all) }, ), $box = gtknew('HBox', sensitive => $download_all, children => [ |