banshee r4189 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Sources
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4189 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Sources
- Date: Mon, 23 Jun 2008 19:35:29 +0000 (UTC)
Author: gburt
Date: Mon Jun 23 19:35:29 2008
New Revision: 4189
URL: http://svn.gnome.org/viewvc/banshee?rev=4189&view=rev
Log:
2008-06-23 Gabriel Burt <gabriel burt gmail com>
* src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs: Avoid
collection modified exception in AddSource.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs Mon Jun 23 19:35:29 2008
@@ -167,8 +167,9 @@
// ServiceManager.DBusServiceManager.RegisterObject(source);
- foreach(Source child_source in source.Children) {
- AddSource(child_source, false);
+ List<Source> children = new List<Source> (source.Children);
+ foreach(Source child_source in children) {
+ AddSource (child_source, false);
}
if(isDefault && ActiveSource == null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]