[banshee/stable] Calculate what to add/remove right before syncing, to ensure we reflect the latest changes in the li



commit 0336a31e4bb0fa8a5300db6b9c5c11f3962ff577
Author: Andrés G. Aragoneses <aaragoneses novell com>
Date:   Thu May 14 11:56:58 2009 -0500

    Calculate what to add/remove right before syncing, to ensure we reflect the latest changes in the library (BGO #581122)
---
 src/Dap/Banshee.Dap/Banshee.Dap/DapLibrarySync.cs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/Dap/Banshee.Dap/Banshee.Dap/DapLibrarySync.cs b/src/Dap/Banshee.Dap/Banshee.Dap/DapLibrarySync.cs
index f2b339c..544680f 100644
--- a/src/Dap/Banshee.Dap/Banshee.Dap/DapLibrarySync.cs
+++ b/src/Dap/Banshee.Dap/Banshee.Dap/DapLibrarySync.cs
@@ -194,6 +194,8 @@ namespace Banshee.Dap
         {
             if (Enabled) {
                 Log.InformationFormat ("Syncing {0}, in main thread? {1}", library, Banshee.Base.ThreadAssist.InMainThread);
+                CalculateSync ();
+
                 if (to_remove.Count > 0) {
                     Log.DebugFormat ("deleting items for {0} - {1} items; to_remove is smartplaylist {2}, with cachid {3}", library.Name, to_remove.Count, to_remove.DbId, to_remove.DatabaseTrackModel.CacheId);
                     sync.Dap.DeleteAllTracks (to_remove);



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