From 316a3d51eebc1de5ddaea1764896c00e007d1f60 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 4 May 2021 22:48:18 +0200 Subject: [PATCH] Shuffle all songs instead of from the current to the end Fixes #707 --- src/playlist/playlist.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/playlist/playlist.cpp b/src/playlist/playlist.cpp index b01e2dbcc..0f8c2f5f1 100644 --- a/src/playlist/playlist.cpp +++ b/src/playlist/playlist.cpp @@ -1875,11 +1875,8 @@ void Playlist::ReshuffleIndices() { return; } - // If the user is already playing a song, advance the begin iterator to only shuffle items that haven't been played yet. QList::iterator begin = virtual_items_.begin(); QList::iterator end = virtual_items_.end(); - if (current_virtual_index_ != -1) - std::advance(begin, current_virtual_index_ + 1); std::random_device rd; std::mt19937 g(rd());