From 943cac3f7f001c1304c084dc56b8fc29ded9e842 Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Thu, 9 Aug 2012 22:48:05 +0100 Subject: [PATCH] a fix for bug 1022038 --- openlp/core/ui/maindisplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/core/ui/maindisplay.py b/openlp/core/ui/maindisplay.py index 17a933a55..6dd37b9ed 100644 --- a/openlp/core/ui/maindisplay.py +++ b/openlp/core/ui/maindisplay.py @@ -580,7 +580,7 @@ class AudioPlayer(QtCore.QObject): self.playlist.extend(map(Phonon.MediaSource, filenames)) def next(self): - if not self.repeat and self.currentIndex + 1 == len(self.playlist): + if not self.repeat and self.currentIndex + 1 >= len(self.playlist): return isPlaying = self.mediaObject.state() == Phonon.PlayingState self.currentIndex += 1