Always forward ValueChanged() event.

- If creating children failed, we wouldn't forward the event on
  to the listeners.
This commit is contained in:
Rene Gollent 2012-12-11 22:50:01 -05:00
parent 9403439347
commit 00e7e607ef

View File

@ -149,13 +149,12 @@ ValueNodeManager::ValueNodeValueChanged(ValueNode* valueNode)
if (valueNode->ChildCreationNeedsValue()
&& !valueNode->ChildrenCreated()) {
status_t error = valueNode->CreateChildren();
if (error != B_OK)
return;
for (int32 i = 0; i < valueNode->CountChildren(); i++) {
ValueNodeChild* child = valueNode->ChildAt(i);
_CreateValueNode(child);
AddChildNodes(child);
if (error == B_OK) {
for (int32 i = 0; i < valueNode->CountChildren(); i++) {
ValueNodeChild* child = valueNode->ChildAt(i);
_CreateValueNode(child);
AddChildNodes(child);
}
}
}