[banshee] [PlayQueue] Adding to an empty queue restarts already played songs (bgo#595080)



commit 7752a29ff052d785910fdd46f966130e0b8920f1
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Mon Sep 14 15:24:38 2009 +1000

    [PlayQueue] Adding to an empty queue restarts already played songs (bgo#595080)

 .../Banshee.PlayQueue/PlayQueueSource.cs           |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs b/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
index 82d5b0f..b38beb9 100644
--- a/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
+++ b/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
@@ -287,8 +287,7 @@ namespace Banshee.PlayQueue
 
                 // If the current_track was not playing, and there were no non-generated tracks,
                 // mark the first added track as current.
-                if (view_order == current_view_order && current_track != null &&
-                    !ServiceManager.PlayerEngine.IsPlaying (current_track)) {
+                if (index != -1 && view_order == current_view_order) {
                     SetCurrentTrack (TrackModel[index] as DatabaseTrackInfo);
                 }
                 return true;



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