diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index ff421f6b5..ff6c25f06 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -139,9 +139,9 @@ const NotificationDaemon = new Lang.Class({ if (icon) { if (icon.substr(0, 7) == 'file://') return new Gio.FileIcon({ file: Gio.File.new_for_uri(icon) }); - else if (icon[0] == '/') { + else if (icon[0] == '/') return new Gio.FileIcon({ file: Gio.File.new_for_path(icon) }); - } else + else return new Gio.ThemedIcon({ name: icon }); } else if (hints['image-data']) { let [width, height, rowStride, hasAlpha,