Author: lluis
Date: 2007-09-21 07:24:35 -0400 (Fri, 21 Sep 2007)
New Revision: 86136

Modified:
   trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
   
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/TreeViewPad.cs
Log:
* MonoDevelop.Ide.Gui.Pads/TreeViewPad.cs: Always check HasChildNodes
  before calling BuildChildNodes. Notice that extensions may add new
  nodes, even if the original node builder returns
  HasChildNodes=false.

Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog        2007-09-21 
11:01:01 UTC (rev 86135)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog        2007-09-21 
11:24:35 UTC (rev 86136)
@@ -1,3 +1,9 @@
+2007-09-21  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * MonoDevelop.Ide.Gui.Pads/TreeViewPad.cs: Always check HasChildNodes 
before
+         calling BuildChildNodes. Notice that extensions may add new nodes, 
even
+         if the original node builder returns HasChildNodes=false.
+
 2007-09-20  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * MonoDevelop.Ide.Gui.Dialogs/OpenFileInSolutionDialog.cs: Make sure 
icons

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/TreeViewPad.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/TreeViewPad.cs
  2007-09-21 11:01:01 UTC (rev 86135)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/TreeViewPad.cs
  2007-09-21 11:24:35 UTC (rev 86136)
@@ -1872,7 +1872,10 @@
                                Gtk.TreeIter it = currentIter;
                                foreach (NodeBuilder builder in chain) {
                                        try {
-                                               builder.BuildChildNodes (this, 
dataObject);
+                                               if (builder.HasChildNodes 
(this, dataObject)) {
+                                                       currentIter = it;
+                                                       builder.BuildChildNodes 
(this, dataObject);
+                                               }
                                        } catch (Exception ex) {
                                                Runtime.LoggingService.Error 
(ex);
                                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to