Go always back to the base state if you change the state

Should work without this, but the performance hit is not so high,
and this is more robust to changes in the qml state code.

Task-Number: BAUHAUS-660
Reviewed-by: kkoehne
This commit is contained in:
Marco Bubke
2010-05-10 17:41:15 +02:00
committed by Kai Koehne
parent 1a1142488c
commit fa640f66db

View File

@@ -616,6 +616,7 @@ NodeInstance NodeInstanceView::loadNode(const ModelNode &node, QObject *objectTo
void NodeInstanceView::activateState(const NodeInstance &instance)
{
activateBaseState();
NodeInstance stateInstance(instance);
stateInstance.activateState();
}