Fix BasePlaybackController with respect to test_next_track_with_random_after_load_playlist

This commit is contained in:
Thomas Adamcik 2010-04-06 23:48:33 +02:00
parent 48c7089083
commit acbe116494

View File

@ -454,6 +454,9 @@ class BasePlaybackController(object):
def new_playlist_loaded_callback(self):
"""Tell the playback controller that a new playlist has been loaded."""
self.current_track = None
self._first_shuffle = True
self._shuffled = []
if self.state == self.PLAYING:
if self.backend.current_playlist.playlist.length > 0:
self.play()