Commit 1a114248 authored by Kai Koehne's avatar Kai Koehne
Browse files

QuickDesigner: Reduce number of times states are rendered

Caused by missing brackets.
parent 2165bd4d
...@@ -69,9 +69,10 @@ QmlStateNodeInstance::Pointer ...@@ -69,9 +69,10 @@ QmlStateNodeInstance::Pointer
void QmlStateNodeInstance::activateState() void QmlStateNodeInstance::activateState()
{ {
if (stateGroup()) { if (stateGroup()) {
if (!isStateActive()) if (!isStateActive()) {
nodeInstanceView()->setStateInstance(nodeInstanceView()->instanceForNode(modelNode())); nodeInstanceView()->setStateInstance(nodeInstanceView()->instanceForNode(modelNode()));
stateGroup()->setState(property("name").toString()); stateGroup()->setState(property("name").toString());
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment