[gnome-music] Fix Prev/Next when the song is Paused



commit ce951dcf080f84179c641c2572d353505c98d3bd
Author: Fabiano Fidêncio <fidencio redhat com>
Date:   Sun Jun 23 02:19:44 2013 +0200

    Fix Prev/Next when the song is Paused
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702879

 src/player.js |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/player.js b/src/player.js
index 96e06c8..732b4e8 100644
--- a/src/player.js
+++ b/src/player.js
@@ -336,24 +336,22 @@ const Player = new Lang.Class({
         if (this.playlist == null)
             return;
 
+        this.stop();
         this.currentTrack = this._getNextTrack();
 
         if (this.currentTrack)
             this.play();
-        else
-            this.stop();
     },
 
     playPrevious: function() {
         if (this.playlist == null)
             return;
 
+        this.stop();
         this.currentTrack = this._getPreviousTrack();
 
         if (this.currentTrack)
             this.play();
-        else
-            this.stop();
     },
 
     setPlaylist: function (type, id, model, iter, field) {


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