Revert "Shuffle all songs instead of from the current to the end"
This reverts commit 316a3d51eebc1de5ddaea1764896c00e007d1f60.
This commit is contained in:
parent
316a3d51ee
commit
fb7b3b0295
@ -1875,8 +1875,11 @@ 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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user