summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rwxr-xr-xmdkapplet4
2 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index fa08e55f..b7e36e6e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- mdkapplet
+ o do not crash if image cannot be loaded (#44750)
+
Version 2.55 - 10 October 2008
- mdkapplet
diff --git a/mdkapplet b/mdkapplet
index c1ad3996..cee3cce3 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -657,8 +657,8 @@ sub setState {
my $checkme;
state $previous_state;
my @arr = @{$state{$state}{menu}};
- my $tmp = gtkcreate_pixbuf($state{$state}{colour}[0]);
- $icon->set_from_pixbuf($tmp);
+ my $tmp = eval { gtkcreate_pixbuf($state{$state}{colour}[0]) };
+ $icon->set_from_pixbuf($tmp) if $tmp;
$icon->set_tooltip(formatAlaTeX(translate($state{$state}{tt}[0])));
my @invisible_states = qw(delayed okay disconnected locked);
$icon->set_visible(!member($state, @invisible_states));