[banshee/stable] Calculate what to add/remove right before syncing, to ensure we reflect the latest changes in the li
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Subject: [banshee/stable] Calculate what to add/remove right before syncing, to ensure we reflect the latest changes in the li
- Date: Thu, 14 May 2009 12:58:38 -0400 (EDT)
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]