Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -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());
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment