diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-04-06 08:31:05 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-04-06 08:31:05 +0000 |
| commit | 9ede0c7dfec7b949e13970725e370189035eb4c7 (patch) | |
| tree | df8bd026cedde04a2d383f272308e117497a6273 /lib/python/Components/MediaPlayer.py | |
| parent | c1742b2d2c072ddd0e3ceb4b2227120cd308a278 (diff) | |
| download | enigma2-9ede0c7dfec7b949e13970725e370189035eb4c7.tar.gz enigma2-9ede0c7dfec7b949e13970725e370189035eb4c7.zip | |
fix deleting the last file from the playlist in the media player
Diffstat (limited to 'lib/python/Components/MediaPlayer.py')
| -rw-r--r-- | lib/python/Components/MediaPlayer.py | 2 |
1 files changed, 1 insertions, 1 deletions
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:] |
