a fix for bug 1022038

This commit is contained in:
Philip Ridout 2012-08-09 22:48:05 +01:00
parent 9b48175ab5
commit 943cac3f7f

View File

@ -580,7 +580,7 @@ class AudioPlayer(QtCore.QObject):
self.playlist.extend(map(Phonon.MediaSource, filenames)) self.playlist.extend(map(Phonon.MediaSource, filenames))
def next(self): 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 return
isPlaying = self.mediaObject.state() == Phonon.PlayingState isPlaying = self.mediaObject.state() == Phonon.PlayingState
self.currentIndex += 1 self.currentIndex += 1