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
06bb5541
Commit
06bb5541
authored
Apr 26, 2010
by
Marco Bubke
Committed by
Kai Koehne
Apr 27, 2010
Browse files
Reset the id before destroying a object
Reviewed-by: kkoehne
parent
2f5c906d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/core/instances/objectnodeinstance.cpp
View file @
06bb5541
...
...
@@ -124,6 +124,7 @@ void ObjectNodeInstance::destroy()
if
(
deleteHeldInstance
())
{
// Remove from old property
if
(
object
()
&&
modelNode
().
isValid
()
&&
modelNode
().
parentProperty
().
isValid
())
{
setId
(
QString
());
NodeAbstractProperty
parentProperty
=
modelNode
().
parentProperty
();
ModelNode
parentNode
=
parentProperty
.
parentModelNode
();
if
(
parentNode
.
isValid
()
&&
nodeInstanceView
()
->
hasInstanceForNode
(
parentNode
))
{
...
...
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