Shuffle all songs instead of from the current to the end

Fixes #707
This commit is contained in:
Jonas Kvinge 2021-05-04 22:48:18 +02:00
parent 240dcf2e5c
commit 316a3d51ee
1 changed files with 0 additions and 3 deletions

View File

@ -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<int>::iterator begin = virtual_items_.begin();
QList<int>::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());