summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmdkapplet10
1 files changed, 6 insertions, 4 deletions
diff --git a/mdkapplet b/mdkapplet
index 8ccd7489..54c114ec 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -447,10 +447,12 @@ sub setState {
$img->set_from_pixbuf($tmp);
gtkset_tip(new Gtk2::Tooltips, $eventbox, formatAlaTeX(translate($state{$state_type}{tt}[0])));
- my $bubble = Gtk2::NotificationBubble->new;
- $bubble->attach($icon);
- $bubble->set(N("Warning"), undef, formatAlaTeX(translate($state{$state_type}{tt}[0])));
- $bubble->show(5000);
+ if ($state{$state_type}{tt}[0]) {
+ my $bubble = Gtk2::NotificationBubble->new;
+ $bubble->attach($icon);
+ $bubble->set(N("Warning"), undef, formatAlaTeX(translate($state{$state_type}{tt}[0])));
+ $bubble->show(5000);
+ }
my $menu = Gtk2::Menu->new;
foreach (@$arr) {