summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-11-10 14:38:37 +0000
committerThierry Vignaud <tv@mandriva.org>2009-11-10 14:38:37 +0000
commit50e8254c92b123298dbb85c79b82b44db0ad746d (patch)
treeb5cddb743a5ebb09770d11e5d5be483f83f24f0e
parentd88b3252740f8e3ce8413bd0556d354cdf3d0ed9 (diff)
downloadmgaonline-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--NEWS1
-rwxr-xr-xmdkapplet2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 8843270a..51b0d9c1 100644
--- a/NEWS
+++ b/NEWS
@@ -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)
diff --git a/mdkapplet b/mdkapplet
index 9d2a898c..8970c1a9 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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 => [