Fix GH-18 by only using the internal shuffled playlist when random mode is on

This commit is contained in:
Stein Magnus Jodal 2010-10-19 12:42:06 +02:00
parent 3a951ca948
commit 9188dcdd4b

View File

@ -142,7 +142,7 @@ class BasePlaybackController(object):
random.shuffle(self._shuffled)
self._first_shuffle = False
if self._shuffled:
if self.random and self._shuffled:
return self._shuffled[0]
if self.current_cp_track is None:
@ -195,7 +195,7 @@ class BasePlaybackController(object):
random.shuffle(self._shuffled)
self._first_shuffle = False
if self._shuffled:
if self.random and self._shuffled:
return self._shuffled[0]
if self.current_cp_track is None: