aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-03-24 23:15:38 -0500
committerTed Gould <ted@gould.cx>2014-03-24 23:15:38 -0500
commitf405395e47049194c0dfefe5b124a1d7a9d90327 (patch)
tree76767e62b7389b3b1e82b4bfeab18102f159dca5
parent2dc2db93122060318cbba27fb706226aed1cf17e (diff)
downloadayatana-indicator-sound-f405395e47049194c0dfefe5b124a1d7a9d90327.tar.gz
ayatana-indicator-sound-f405395e47049194c0dfefe5b124a1d7a9d90327.tar.bz2
ayatana-indicator-sound-f405395e47049194c0dfefe5b124a1d7a9d90327.zip
Ensure selected user is not null
-rw-r--r--src/media-player-list-greeter.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/media-player-list-greeter.vala b/src/media-player-list-greeter.vala
index 15e4c55..4af57af 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++;