[Monodevelop-patches-list] r977 - in trunk/MonoDevelop/src: Libraries/MonoDevelop.Gui.Widgets/Tree Main/Base/Gui/Pads/ClassScout/NodeBuilder
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sat Feb 21 17:08:05 EST 2004
Author: tberman
Date: 2004-02-21 17:08:05 -0500 (Sat, 21 Feb 2004)
New Revision: 977
Modified:
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/Tree/TreeNode.cs
trunk/MonoDevelop/src/Main/Base/Gui/Pads/ClassScout/NodeBuilder/DefaultDotNetClassScoutNodeBuilder.cs
Log:
fixing phantom namespace bug
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/Tree/TreeNode.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/Tree/TreeNode.cs 2004-02-21 21:10:37 UTC (rev 976)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/Tree/TreeNode.cs 2004-02-21 22:08:05 UTC (rev 977)
@@ -161,8 +161,9 @@
private void OnNodeRemoved(TreeNode node)
{
- if (TreeView != null)
+ if (TreeView != null) {
TreeView.RemoveNode(node);
+ }
node.parent = null;
}
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/ClassScout/NodeBuilder/DefaultDotNetClassScoutNodeBuilder.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/ClassScout/NodeBuilder/DefaultDotNetClassScoutNodeBuilder.cs 2004-02-21 21:10:37 UTC (rev 976)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/ClassScout/NodeBuilder/DefaultDotNetClassScoutNodeBuilder.cs 2004-02-21 22:08:05 UTC (rev 977)
@@ -66,6 +66,8 @@
foreach (TreeNode nd in node.Nodes) {
if (nd.Text == c.Name) {
nd.Remove ();
+ if (node.Nodes.Count == 0 && c.Namespace.EndsWith (node.Text))
+ node.Remove ();
return;
}
}
More information about the Monodevelop-patches-list
mailing list