From cddbf83503fe691dfb07f8e49716a69ada5443c4 Mon Sep 17 00:00:00 2001 From: Jens Persson Date: Sun, 29 May 2011 01:09:28 +0200 Subject: [PATCH] same as previous commit --- src/panucci/playlist.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/panucci/playlist.py b/src/panucci/playlist.py index bda3fcc..6eafe7d 100644 --- a/src/panucci/playlist.py +++ b/src/panucci/playlist.py @@ -301,16 +301,12 @@ class Playlist(ObservableService): self.stop() item.delete_bookmark(None) self.__queue.remove(item) - if self.__queue.current_item_position != 0: - if not is_end: - self.__queue.current_item_position = self.__queue.current_item_position - else: - self.__queue.current_item_position = 0 + if not is_end: + self.__queue.current_item_position = self.__queue.current_item_position + elif not self.is_empty: + self.__queue.current_item_position = 0 else: - if self.is_empty: - self.reset_playlist() - else: - self.__queue.current_item_position = 0 + self.reset_playlist() else: item.delete_bookmark(None) self.__queue.remove(item) -- 2.11.4.GIT