From: Stefan Pluecken Date: Thu, 6 Apr 2006 08:31:05 +0000 (+0000) Subject: fix deleting the last file from the playlist in the media player X-Git-Tag: 2.6.0~3699 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/9ede0c7dfec7b949e13970725e370189035eb4c7 fix deleting the last file from the playlist in the media player --- diff --git a/lib/python/Components/MediaPlayer.py b/lib/python/Components/MediaPlayer.py index b6b2e432..31799c5b 100644 --- a/lib/python/Components/MediaPlayer.py +++ b/lib/python/Components/MediaPlayer.py @@ -79,7 +79,7 @@ class PlayList(HTMLComponent, GUIComponent, MenuList): self.list.append(PlaylistEntryComponent(serviceref, STATE_NONE)) def deleteFile(self, index): - if self.currPlaying > index: + if self.currPlaying >= index: self.currPlaying -= 1 self.list = self.list[:index] + self.list[index + 1:]