Fix test_next_with_consume

This commit is contained in:
Thomas Adamcik 2010-02-19 23:11:47 +01:00
parent 60a0d182e2
commit 92d4b939a0

View File

@ -117,13 +117,15 @@ class BasePlaybackController(object):
self.stop()
def next(self):
current_track = self.current_track
if not self.next_track:
self.stop()
else:
self.play(self.next_track)
if self.consume:
self.backend.current_playlist.remove(self.current_track)
self.backend.current_playlist.remove(current_track)
def previous(self):
if self.previous_track: