~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/TransactedTreeBuilder.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2012-02-05 10:49:36 UTC
  • mto: (10.3.1)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: package-import@ubuntu.com-20120205104936-4ujoylapu24cquuo
Tags: upstream-2.8.6.3+dfsg
ImportĀ upstreamĀ versionĀ 2.8.6.3+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
751
751
                                        foreach (TreeNode cn in node.Children)
752
752
                                                RemoveNode (cn);
753
753
                                }
754
 
                                if (!node.HasIter) {
755
 
                                        List<TreeNode> list = objects [node.DataItem];
 
754
                                
 
755
                                List<TreeNode> list = null;
 
756
                                
 
757
                                if (!node.HasIter && objects.TryGetValue (node.DataItem, out list)) {
756
758
                                        list.Remove (node);
757
759
                                        if (list.Count == 0) {
758
760
                                                objects.Remove (node.DataItem);