fixed the tree model - need to refresh tree paths for children as well

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1858 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2009-09-06 09:00:29 +00:00
parent 592a301626
commit 388724f3a8
2 changed files with 10 additions and 2 deletions
@@ -87,7 +87,7 @@ namespace ProcessHacker
_roots.Remove(node);
itemNode.Children.Add(node);
node.Parent = itemNode;
node.RefreshTreePath();
node.RefreshTreePathRecursive();
}
}
@@ -181,7 +181,7 @@ namespace ProcessHacker
foreach (ProcessNode child in children)
{
child.Parent = null;
child.RefreshTreePath();
child.RefreshTreePathRecursive();
}
_roots.AddRange(children);