fix deleting the last file from the playlist in the media player
[enigma2.git] / lib / python / Components / MediaPlayer.py
index b6b2e4322413d4cf0d64fd5627a6c4ca17215a8f..31799c5bff97c81d7572916a67d8fcd002296fc2 100644 (file)
@@ -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:]