banshee r3891 - trunk/banshee/src/Core/Banshee.Services/Banshee.Sources
- From: abock svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3891 - trunk/banshee/src/Core/Banshee.Services/Banshee.Sources
- Date: Tue, 6 May 2008 18:11:39 +0100 (BST)
Author: abock
Date: Tue May 6 17:11:39 2008
New Revision: 3891
URL: http://svn.gnome.org/viewvc/banshee?rev=3891&view=rev
Log:
Back to gabaug's
Modified:
trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/PrimarySource.cs
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/PrimarySource.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/PrimarySource.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/PrimarySource.cs Tue May 6 17:11:39 2008
@@ -440,7 +440,8 @@
// Store a snapshot of the current selection
CachedList<DatabaseTrackInfo> cached_list = CachedList<DatabaseTrackInfo>.CreateFromModelSelection (model);
- AddTrackList (cached_list);
+
+ System.Threading.ThreadPool.QueueUserWorkItem (AddTrackList, cached_list);
return true;
}
@@ -462,8 +463,9 @@
IncrementAddedTracks ();
}
- protected virtual void AddTrackList (CachedList<DatabaseTrackInfo> list)
+ protected virtual void AddTrackList (object cached_list)
{
+ CachedList<DatabaseTrackInfo> list = cached_list as CachedList<DatabaseTrackInfo>;
is_adding = true;
AddTrackJob.Total += (int) list.Count;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]