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
Tobias Hunger
qt-creator
Commits
1cbf0f26
Commit
1cbf0f26
authored
Dec 09, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.metaInfo: crashfix
getNearestQmlObjectValue() might be 0 if qmldump could not dump the C++ object.
parent
1f4e6b79
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp
View file @
1cbf0f26
...
...
@@ -498,6 +498,8 @@ bool NodeMetaInfoPrivate::isPropertyWritable(const QString &propertyName) const
}
const
QmlJS
::
Interpreter
::
QmlObjectValue
*
qmlObjectValue
=
getNearestQmlObjectValue
();
if
(
!
qmlObjectValue
)
return
true
;
if
(
qmlObjectValue
->
hasProperty
(
propertyName
))
return
qmlObjectValue
->
isWritable
(
propertyName
);
else
...
...
@@ -526,7 +528,10 @@ bool NodeMetaInfoPrivate::isPropertyList(const QString &propertyName) const
return
true
;
}
return
getNearestQmlObjectValue
()
->
isListProperty
(
propertyName
);
const
QmlJS
::
Interpreter
::
QmlObjectValue
*
qmlObjectValue
=
getNearestQmlObjectValue
();
if
(
!
qmlObjectValue
)
return
false
;
return
qmlObjectValue
->
isListProperty
(
propertyName
);
}
bool
NodeMetaInfoPrivate
::
isPropertyPointer
(
const
QString
&
propertyName
)
const
...
...
@@ -550,7 +555,10 @@ bool NodeMetaInfoPrivate::isPropertyPointer(const QString &propertyName) const
return
true
;
}
return
getNearestQmlObjectValue
()
->
isPointer
(
propertyName
);
const
QmlJS
::
Interpreter
::
QmlObjectValue
*
qmlObjectValue
=
getNearestQmlObjectValue
();
if
(
!
qmlObjectValue
)
return
false
;
return
qmlObjectValue
->
isPointer
(
propertyName
);
}
bool
NodeMetaInfoPrivate
::
isPropertyEnum
(
const
QString
&
propertyName
)
const
...
...
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