Fix BaseCurrentPlaylistController with respect to test_move_single

This commit is contained in:
Thomas Adamcik 2010-04-05 21:31:55 +02:00
parent b126311f18
commit 3cb382e495

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]: