aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sound-menu.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sound-menu.vala b/src/sound-menu.vala
index 4c62b38..f3f4fd9 100644
--- a/src/sound-menu.vala
+++ b/src/sound-menu.vala
@@ -149,7 +149,8 @@ class SoundMenu: Object
var player_item = new MenuItem (player.name, "indicator." + player.id);
player_item.set_attribute ("x-canonical-type", "s", "com.canonical.unity.media-player");
- player_item.set_attribute_value ("icon", g_icon_serialize (player.icon));
+ if (icon != null)
+ player_item.set_attribute_value ("icon", g_icon_serialize (icon));
section.append_item (player_item);
var playback_item = new MenuItem (null, null);