[Monodevelop-patches-list] r628 - trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sat Jan 24 13:15:27 EST 2004


Author: benm
Date: 2004-01-24 13:15:27 -0500 (Sat, 24 Jan 2004)
New Revision: 628

Modified:
   trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/ProjectBrowserView.cs
Log:
do sorting better

Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/ProjectBrowserView.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/ProjectBrowserView.cs	2004-01-24 18:14:53 UTC (rev 627)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/ProjectBrowserView.cs	2004-01-24 18:15:27 UTC (rev 628)
@@ -190,8 +190,10 @@
 			((AbstractBrowserNode) node).AfterLabelEdit (new_text);
 			
 			if (node.Parent != null)
-				SortUtility.QuickSort (node.Parent.Nodes, TreeNodeComparer.ProjectNode);
+				node.Parent.Sort (TreeNodeComparer.ProjectNode);
 			
+			node.EnsureVisible();
+			
 			// save changes
 			IProjectService projectService = (IProjectService) ServiceManager.Services.GetService (typeof(IProjectService));
 			projectService.SaveCombine();
@@ -322,7 +324,7 @@
 				combineNode.Nodes.Add(node);
 			}
 			
-			SortUtility.QuickSort(combineNode.Nodes, TreeNodeComparer.ProjectNode);
+			combineNode.Sort (TreeNodeComparer.ProjectNode);
 			
 			return combineNode;
 		}




More information about the Monodevelop-patches-list mailing list