aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/media-player-list-greeter.vala2
-rw-r--r--src/service.vala2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/media-player-list-greeter.vala b/src/media-player-list-greeter.vala
index 4842dc3..3059946 100644
--- a/src/media-player-list-greeter.vala
+++ b/src/media-player-list-greeter.vala
@@ -108,7 +108,7 @@ public class MediaPlayerListGreeter : MediaPlayerList {
public override MediaPlayer? next_value () {
MediaPlayer? retval = null;
- if (i == 0) {
+ if (i == 0 && list.selected_user != null) {
retval = list.players.lookup(list.selected_user);
}
i++;
diff --git a/src/service.vala b/src/service.vala
index 0e32bfe..4e02769 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -39,7 +39,7 @@ public class IndicatorSound.Service: Object {
this.menus = new HashTable<string, SoundMenu> (str_hash, str_equal);
this.menus.insert ("desktop_greeter", new SoundMenu (null, SoundMenu.DisplayFlags.SHOW_MUTE | SoundMenu.DisplayFlags.HIDE_PLAYERS));
- this.menus.insert ("phone_greeter", new SoundMenu (null, SoundMenu.DisplayFlags.SHOW_MUTE | SoundMenu.DisplayFlags.HIDE_INACTIVE_PLAYERS));
+ this.menus.insert ("phone_greeter", new SoundMenu (null, SoundMenu.DisplayFlags.HIDE_INACTIVE_PLAYERS));
this.menus.insert ("desktop", new SoundMenu ("indicator.desktop-settings", SoundMenu.DisplayFlags.SHOW_MUTE));
this.menus.insert ("phone", new SoundMenu ("indicator.phone-settings", SoundMenu.DisplayFlags.HIDE_INACTIVE_PLAYERS));