diff options
Diffstat (limited to 'src/sound-menu.vala')
-rw-r--r-- | src/sound-menu.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sound-menu.vala b/src/sound-menu.vala index e1c5c1f..af808b5 100644 --- a/src/sound-menu.vala +++ b/src/sound-menu.vala @@ -144,7 +144,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 (player.icon != null) + player_item.set_attribute_value ("icon", g_icon_serialize (player.icon)); section.append_item (player_item); var playback_item = new MenuItem (null, null); |