[banshee/stable-1.6] [UserJobTile] Don't crash if icons are missing (bgo#615778)



commit f1be19d269dc42e855f3da4c8444785b7346f211
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Sat Apr 17 11:07:40 2010 +1000

    [UserJobTile] Don't crash if icons are missing (bgo#615778)

 .../Banshee.Gui.Widgets/UserJobTile.cs             |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTile.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTile.cs
index b42fa42..e175d98 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTile.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTile.cs
@@ -256,7 +256,10 @@ namespace Banshee.Gui.Widgets
                 return;
             }
 
-            icon_pixbuf = new Gdk.Pixbuf (icon_names[0]);
+            try {
+                icon_pixbuf = new Gdk.Pixbuf (icon_names[0]);
+            } catch (GLib.GException) {}
+
             if (icon_pixbuf != null) {
                 Gdk.Pixbuf scaled = icon_pixbuf.ScaleSimple (22, 22, Gdk.InterpType.Bilinear);
                 icon_pixbuf.Dispose ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]