X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/08fca93e7f2a37a452399d08c5c84b969b7e52af..02172ca65853b9f61d46c0e5e7823ee69f203b83:/lib/python/Components/MediaPlayer.py 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:]