utils: No error to catch here

This commit is contained in:
Rico Tzschichholz 2015-03-04 12:07:09 +01:00
parent c594f8e9a7
commit 3fc7213841

View File

@ -130,18 +130,14 @@ namespace Gala
string? icon_key = null;
if (app != null && app.get_desktop_file () != null) {
try {
var appinfo = new DesktopAppInfo.from_filename (app.get_desktop_file ());
if (appinfo != null) {
icon = Plank.Drawing.DrawingService.get_icon_from_gicon (appinfo.get_icon ());
icon_key = "%s::%i".printf (icon, size);
if (ignore_cache || (image = icon_pixbuf_cache.get (icon_key)) == null) {
image = Plank.Drawing.DrawingService.load_icon (icon, size, size);
not_cached = true;
}
var appinfo = new DesktopAppInfo.from_filename (app.get_desktop_file ());
if (appinfo != null) {
icon = Plank.Drawing.DrawingService.get_icon_from_gicon (appinfo.get_icon ());
icon_key = "%s::%i".printf (icon, size);
if (ignore_cache || (image = icon_pixbuf_cache.get (icon_key)) == null) {
image = Plank.Drawing.DrawingService.load_icon (icon, size, size);
not_cached = true;
}
} catch (Error e) {
warning (e.message);
}
}