[gnome-music/wip/merge: 192/343] player: correctly check for previous track to exist



commit 121f0325f6cd86cc09e15370d012284088fac685
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Tue Jul 16 18:34:11 2013 +0200

    player: correctly check for previous track to exist

 gnomemusic/player.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 5da13aa..e2d1110 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -203,7 +203,7 @@ class Player(GObject.GObject):
             return True
         else:
             tmp = self.currentTrack.copy()
-            return self.playlist.iter_previous(tmp)
+            return self.playlist.iter_previous(tmp) is not None
 
     def getPlaying(self):
         ok, state, pending = self.player.get_state(0)


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