Fix shuffle mode being constant seeded
This commit is contained in:
parent
18e1588d73
commit
ee30799ac7
1 changed files with 1 additions and 5 deletions
|
|
@ -193,11 +193,7 @@ int SongListModel::findNextIndex(int currentIndex, bool shuffle) const
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (shuffle)
|
if (shuffle)
|
||||||
{
|
return QRandomGenerator::global()->bounded(songList.size());
|
||||||
// Simple random selection for shuffle mode
|
|
||||||
QRandomGenerator generator;
|
|
||||||
return generator.bounded(songList.size());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Sequential playback
|
// Sequential playback
|
||||||
int nextIndex = currentIndex + 1;
|
int nextIndex = currentIndex + 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue