Fixed a bug when the playqueue is emptied (by a rescan for example) and repeat all is active

This commit is contained in:
emeric
2020-04-27 14:50:18 +02:00
parent 80fb592ee6
commit c0ef664061
+1 -1
View File
@@ -224,7 +224,7 @@ PlayQueue::loadTrack(std::size_t pos, bool play)
// If out of range, stop playing
if (pos >= tracklist->getCount())
{
if (!_repeatAll)
if (!_repeatAll || tracklist->getCount() == 0)
{
stop();
return;