summaryrefslogtreecommitdiffstats
path: root/mgaapplet
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-02-04 03:37:06 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-02-04 03:37:39 +0100
commitee9dc74d8eb47c1444072ae1905e0bb69b6aface (patch)
tree4da5b91096c1f01badf65569ccea6624208f7b64 /mgaapplet
parentdbb5d00207e73f7a21f931d627e10de24b87a5ac (diff)
downloadmgaonline-ee9dc74d8eb47c1444072ae1905e0bb69b6aface.tar
mgaonline-ee9dc74d8eb47c1444072ae1905e0bb69b6aface.tar.gz
mgaonline-ee9dc74d8eb47c1444072ae1905e0bb69b6aface.tar.bz2
mgaonline-ee9dc74d8eb47c1444072ae1905e0bb69b6aface.tar.xz
mgaonline-ee9dc74d8eb47c1444072ae1905e0bb69b6aface.zip
fix crashing if there's not notification daemon (mga#12416)
Diffstat (limited to 'mgaapplet')
-rwxr-xr-xmgaapplet2
1 files changed, 1 insertions, 1 deletions
diff --git a/mgaapplet b/mgaapplet
index 3474def6..5991921d 100755
--- a/mgaapplet
+++ b/mgaapplet
@@ -693,7 +693,7 @@ sub setState {
$bubble->set_urgency($state{$state}{urgency}) if $state{$state}{urgency};
my $timeout = 5000;
$bubble->set_timeout($timeout);
- Glib::Timeout->add($timeout, sub { $bubble->close; 0 });
+ Glib::Timeout->add($timeout, sub { eval { $bubble->close }; 0 });
eval { $bubble->show };
warn ">> ERR:$@" if $@;
}