Fix BaseCurrentPlaylistController with respect to test_move_single

(cherry picked from commit 3cb382e495)
This commit is contained in:
Thomas Adamcik 2010-04-05 21:31:55 +02:00 committed by Stein Magnus Jodal
parent da886fef8c
commit d18e19d094

View File

@ -138,6 +138,9 @@ class BaseCurrentPlaylistController(object):
:param to_position: new position for the tracks
:type to_position: int
"""
if start == end:
end += 1
tracks = self.playlist.tracks
new_tracks = tracks[:start] + tracks[end:]
for track in tracks[start:end]: