Fix child-creation-needs-value nodes.

We only want to do a delete/create cycle if the node actually changed. Fixes
BMessageValueNode.
This commit is contained in:
Rene Gollent
2012-11-04 13:10:35 +01:00
parent d091af40ea
commit ba4dad8b49
@@ -955,15 +955,15 @@ VariablesView::VariableTableModel::ValueNodeChanged(ValueNodeChild* nodeChild,
return;
AutoLocker<ValueNodeContainer> containerLocker(fContainer);
ModelNode* modelNode = fNodeTable.Lookup(nodeChild);
if (modelNode == NULL)
return;
if (oldNode != NULL)
if (oldNode != NULL) {
ValueNodeChildrenDeleted(oldNode);
ValueNodeChildrenCreated(newNode);
fContainerListener->ModelNodeValueRequested(modelNode);
ValueNodeChildrenCreated(newNode);
fContainerListener->ModelNodeValueRequested(modelNode);
}
}