[mapguide-commits] r6161 - trunk/Tools/Maestro/Maestro.Base/UI
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sun Oct 2 20:45:30 EDT 2011
Author: jng
Date: 2011-10-02 17:45:29 -0700 (Sun, 02 Oct 2011)
New Revision: 6161
Modified:
trunk/Tools/Maestro/Maestro.Base/UI/RepositoryTreeModel.cs
Log:
Small guard against duplicate repository items being added
Modified: trunk/Tools/Maestro/Maestro.Base/UI/RepositoryTreeModel.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/UI/RepositoryTreeModel.cs 2011-09-30 10:55:36 UTC (rev 6160)
+++ trunk/Tools/Maestro/Maestro.Base/UI/RepositoryTreeModel.cs 2011-10-03 00:45:29 UTC (rev 6161)
@@ -145,7 +145,8 @@
internal void AddChildWithoutNotification(RepositoryItem item)
{
item.Parent = this;
- _children.Add(item.NameQualified, item);
+ if (!_children.ContainsKey(item.NameQualified))
+ _children.Add(item.NameQualified, item);
}
internal void RemoveChildWithoutNotification(RepositoryItem item)
More information about the mapguide-commits
mailing list