Fix broken ValueNodeChildrenDeleted() behavior.

- Due to the way the item list was being iterated,
  ValueNodeChildrenDeleted() would only actually remove every
  other child.
This commit is contained in:
Rene Gollent 2013-04-27 13:53:52 -04:00
parent aa366c07b1
commit b11fd75b4b

View File

@ -1035,7 +1035,7 @@ VariablesView::VariableTableModel::ValueNodeChildrenDeleted(ValueNode* node)
fNodeTable.Remove(hiddenChild);
}
for (int32 i = 0; i < modelNode->CountChildren(); i++) {
for (int32 i = modelNode->CountChildren() - 1; i >= 0 ; i--) {
BReference<ModelNode> childNode = modelNode->ChildAt(i);
TreeTablePath treePath;
if (GetTreePath(childNode, treePath)) {