fix deleting the last file from the playlist in the media player
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 6 Apr 2006 08:31:05 +0000 (08:31 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 6 Apr 2006 08:31:05 +0000 (08:31 +0000)
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:]