diff options
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 1f31ec81c1..78d41ea45e 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -2749,6 +2749,11 @@ int playlist_move(struct playlist_info* playlist, int index, int new_index) | |||
2749 | else /* Calculate index of desired position */ | 2749 | else /* Calculate index of desired position */ |
2750 | { | 2750 | { |
2751 | new_index = (r+playlist->first_index)%playlist->amount; | 2751 | new_index = (r+playlist->first_index)%playlist->amount; |
2752 | |||
2753 | if ((new_index < playlist->first_index) && (new_index <= playlist->index)) | ||
2754 | displace_current = true; | ||
2755 | else if ((new_index >= playlist->first_index) && (playlist->index < playlist->first_index)) | ||
2756 | displace_current = false; | ||
2752 | } | 2757 | } |
2753 | 2758 | ||
2754 | result = add_track_to_playlist_unlocked(playlist, filename, | 2759 | result = add_track_to_playlist_unlocked(playlist, filename, |