summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-11-19 13:30:51 +0000
committerThierry Vignaud <tv@mandriva.org>2008-11-19 13:30:51 +0000
commite4c73bb51ac482a9cfe89b1eb29cc78c51db85e9 (patch)
treef780be5678b5e11ff30ccdd57ffdcbc9738f5013 /mdkapplet
parent5fc2935b124bf10f47a8b2123cdffb110041a4c1 (diff)
downloadmgaonline-e4c73bb51ac482a9cfe89b1eb29cc78c51db85e9.tar
mgaonline-e4c73bb51ac482a9cfe89b1eb29cc78c51db85e9.tar.gz
mgaonline-e4c73bb51ac482a9cfe89b1eb29cc78c51db85e9.tar.bz2
mgaonline-e4c73bb51ac482a9cfe89b1eb29cc78c51db85e9.tar.xz
mgaonline-e4c73bb51ac482a9cfe89b1eb29cc78c51db85e9.zip
(setState) do not add menu items w/o a valid callback (preventing crashes)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdkapplet b/mdkapplet
index 9e27718e..f938e2a8 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -634,6 +634,7 @@ sub setState {
my $menu = Gtk2::Menu->new;
foreach (@arr) {
my $action = $actions{$_};
+ next if !ref($action->{launch});
$menu->append(gtksignal_connect(gtkshow(Gtk2::MenuItem->new_with_label($action->{name})), activate => $action->{launch}));
}
$menu->append(gtkshow(Gtk2::SeparatorMenuItem->new));