From 5bdbcdc8525b6d7e4261a6bbf1339e713a309d3c Mon Sep 17 00:00:00 2001 From: Jens Persson Date: Wed, 23 Mar 2011 13:53:38 +0100 Subject: [PATCH] fixed a bug in playlist --- src/panucci/playlist.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/panucci/playlist.py b/src/panucci/playlist.py index 946ca32..be15ba6 100644 --- a/src/panucci/playlist.py +++ b/src/panucci/playlist.py @@ -255,16 +255,12 @@ class Playlist(ObservableService): return False if bookmark_id is None: - if self.__queue.current_item_position < self.__queue.index(item): - item.delete_bookmark(None) - self.__queue.remove(item) - elif self.__queue.current_item_position == self.__queue.index(item): + if self.__queue.current_item_position == self.__queue.index(item): item.delete_bookmark(None) self.__queue.remove(item) self.notify('stop-requested', caller=self.remove_bookmark) self.__queue.current_item_position = self.__queue.current_item_position else: - self.__queue.set_current_item_position(self.__queue.current_item_position - 1) item.delete_bookmark(None) self.__queue.remove(item) else: -- 2.11.4.GIT