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
e0eaa1b9
Commit
e0eaa1b9
authored
Dec 06, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.nodeinstanes: crash fix
We have to check if there is a model. Might be detached, already!
parent
56445230
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp
View file @
e0eaa1b9
...
...
@@ -839,6 +839,9 @@ AddImportCommand NodeInstanceView::createImportCommand(const Import &import)
void
NodeInstanceView
::
valuesChanged
(
const
ValuesChangedCommand
&
command
)
{
if
(
!
model
())
return
;
QList
<
QPair
<
ModelNode
,
QString
>
>
valuePropertyChangeList
;
foreach
(
const
PropertyValueContainer
&
container
,
command
.
valueChanges
())
{
...
...
@@ -856,7 +859,10 @@ void NodeInstanceView::valuesChanged(const ValuesChangedCommand &command)
}
void
NodeInstanceView
::
pixmapChanged
(
const
PixmapChangedCommand
&
command
)
{
{
if
(
!
model
())
return
;
QSet
<
ModelNode
>
renderImageChangeSet
;
foreach
(
const
ImageContainer
&
container
,
command
.
images
())
{
...
...
@@ -875,6 +881,9 @@ void NodeInstanceView::pixmapChanged(const PixmapChangedCommand &command)
void
NodeInstanceView
::
informationChanged
(
const
InformationChangedCommand
&
command
)
{
if
(
!
model
())
return
;
QList
<
ModelNode
>
informationChangedList
;
foreach
(
const
InformationContainer
&
container
,
command
.
informations
())
{
...
...
@@ -898,6 +907,9 @@ void NodeInstanceView::statePreviewImagesChanged(const StatePreviewImageChangedC
void
NodeInstanceView
::
childrenChanged
(
const
ChildrenChangedCommand
&
command
)
{
if
(
!
model
())
return
;
QList
<
ModelNode
>
childNodeList
;
foreach
(
qint32
instanceId
,
command
.
childrenInstances
())
{
...
...
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