[gnome-music/wip/merge: 309/343] player: correctly pick previous track for Repeat/Shuffle off mode



commit c1bc198839fc819a681f41300bea6533c47fc9bb
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Sun Jul 21 10:18:46 2013 +0200

    player: correctly pick previous track for Repeat/Shuffle off mode
    
    Fixes #77

 gnomemusic/player.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 7a1ece0..3187f5f 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -187,7 +187,7 @@ class Player(GObject.GObject):
             if previousTrack is None:
                 previousTrack = self._get_iter_last()
         elif self.repeat == RepeatType.NONE:
-            previousTrack = self.playlist.iter_previous(previousTrack)
+            previousTrack = self.playlist.iter_previous(currentTrack)
         elif self.repeat == RepeatType.SHUFFLE:
             previousTrack = self.playlist.get_iter_first()
             rows = self.playlist.iter_n_children(None)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]