[banshee] Shuffler: fix Repeat-OFF mode when Shuffle is ON (bgo#724515)



commit 5b6400d4052f7ff16188696a3c24e42428cb9686
Author: Andrés G. Aragoneses <knocte gmail com>
Date:   Mon Feb 17 01:32:56 2014 +0100

    Shuffler: fix Repeat-OFF mode when Shuffle is ON (bgo#724515)
    
    Shuffler should only retry calling GetRandomTrack() when
    the previous call returned null and repeat is ON, regardless
    of the shuffle mode.

 .../Banshee.Collection.Database/Shuffler.cs        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Collection.Database/Shuffler.cs 
b/src/Core/Banshee.Services/Banshee.Collection.Database/Shuffler.cs
index 0cdfb7b..1f4fd45 100644
--- a/src/Core/Banshee.Services/Banshee.Collection.Database/Shuffler.cs
+++ b/src/Core/Banshee.Services/Banshee.Collection.Database/Shuffler.cs
@@ -168,7 +168,7 @@ namespace Banshee.Collection.Database
                 }
 
                 TrackInfo track = GetRandomTrack (mode, repeat, resetSinceTime);
-                if (track == null && (repeat || mode != "off")) {
+                if (track == null && repeat) {
                     random_began_at = (random_began_at == last_random) ? DateTime.Now : last_random;
                     track = GetRandomTrack (mode, repeat, true);
                 }


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