diff options
author | Ted Gould <ted@gould.cx> | 2014-03-24 23:15:38 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-03-24 23:15:38 -0500 |
commit | f405395e47049194c0dfefe5b124a1d7a9d90327 (patch) | |
tree | 76767e62b7389b3b1e82b4bfeab18102f159dca5 | |
parent | 2dc2db93122060318cbba27fb706226aed1cf17e (diff) | |
download | ayatana-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.vala | 2 |
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++; |