Always forward ValueChanged() event.
- If creating children failed, we wouldn't forward the event on to the listeners.
This commit is contained in:
@@ -149,13 +149,12 @@ ValueNodeManager::ValueNodeValueChanged(ValueNode* valueNode)
|
|||||||
if (valueNode->ChildCreationNeedsValue()
|
if (valueNode->ChildCreationNeedsValue()
|
||||||
&& !valueNode->ChildrenCreated()) {
|
&& !valueNode->ChildrenCreated()) {
|
||||||
status_t error = valueNode->CreateChildren();
|
status_t error = valueNode->CreateChildren();
|
||||||
if (error != B_OK)
|
if (error == B_OK) {
|
||||||
return;
|
for (int32 i = 0; i < valueNode->CountChildren(); i++) {
|
||||||
|
ValueNodeChild* child = valueNode->ChildAt(i);
|
||||||
for (int32 i = 0; i < valueNode->CountChildren(); i++) {
|
_CreateValueNode(child);
|
||||||
ValueNodeChild* child = valueNode->ChildAt(i);
|
AddChildNodes(child);
|
||||||
_CreateValueNode(child);
|
}
|
||||||
AddChildNodes(child);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user