Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
de187cb6
Commit
de187cb6
authored
Oct 25, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.model: crash fix
Check if the node is really a PropertyChange Reviewed-by: Marco Bubke
parent
70fd2c21
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/designercore/model/qmlstate.cpp
View file @
de187cb6
...
...
@@ -60,7 +60,7 @@ QmlPropertyChanges QmlModelState::propertyChanges(const ModelNode &node)
addChangeSetIfNotExists
(
node
);
foreach
(
const
ModelNode
&
childNode
,
modelNode
().
nodeListProperty
(
"changes"
).
toModelNodeList
())
{
//### exception if not valid QmlModelStateOperation
if
(
QmlPropertyChanges
(
childNode
).
target
().
isValid
()
&&
QmlPropertyChanges
(
childNode
).
target
()
==
node
)
if
(
QmlPropertyChanges
(
childNode
).
target
().
isValid
()
&&
QmlPropertyChanges
(
childNode
).
target
()
==
node
&&
QmlPropertyChanges
(
childNode
).
isValid
()
)
return
QmlPropertyChanges
(
childNode
);
//### exception if not valid(childNode);
}
return
QmlPropertyChanges
();
//not found
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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