Ensure that previous_track for random is current_track

This commit is contained in:
Thomas Adamcik 2010-02-20 21:42:40 +01:00
parent 96a974ac4d
commit 8c145b52f7

View File

@ -171,7 +171,7 @@ class BasePlaybackController(object):
def previous_track(self):
playlist = self.backend.current_playlist.playlist
if self.repeat or self.consume:
if self.repeat or self.consume or self.random:
return self.current_track
if self.current_track is None: