From c0ef664061bff5516031607676022cfb9d4941be Mon Sep 17 00:00:00 2001 From: emeric Date: Mon, 27 Apr 2020 14:50:18 +0200 Subject: [PATCH] Fixed a bug when the playqueue is emptied (by a rescan for example) and repeat all is active --- src/lms/ui/PlayQueueView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lms/ui/PlayQueueView.cpp b/src/lms/ui/PlayQueueView.cpp index b634429d..34c82186 100644 --- a/src/lms/ui/PlayQueueView.cpp +++ b/src/lms/ui/PlayQueueView.cpp @@ -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;