Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
224f3eae
Commit
224f3eae
authored
Dec 09, 2010
by
Marco Bubke
Browse files
QmlDesigner.NodeInstances: Revert to base state for every state change
This is a woukround and should be fixed later.
parent
5f04fbba
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/designercore/instances/nodeinstanceserver.cpp
View file @
224f3eae
...
@@ -209,6 +209,8 @@ void NodeInstanceServer::reparentInstances(const ReparentInstancesCommand &comma
...
@@ -209,6 +209,8 @@ void NodeInstanceServer::reparentInstances(const ReparentInstancesCommand &comma
void
NodeInstanceServer
::
changeState
(
const
ChangeStateCommand
&
command
)
void
NodeInstanceServer
::
changeState
(
const
ChangeStateCommand
&
command
)
{
{
if
(
hasInstanceForId
(
command
.
stateInstanceId
()))
{
if
(
hasInstanceForId
(
command
.
stateInstanceId
()))
{
if
(
activeStateInstance
().
isValid
())
activeStateInstance
().
deactivateState
();
ServerNodeInstance
instance
=
instanceForId
(
command
.
stateInstanceId
());
ServerNodeInstance
instance
=
instanceForId
(
command
.
stateInstanceId
());
instance
.
activateState
();
instance
.
activateState
();
}
else
{
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment