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:
parent
aa366c07b1
commit
b11fd75b4b
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user