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
f7ca9efb
Commit
f7ca9efb
authored
Apr 23, 2010
by
Kai Koehne
Browse files
QmlDesigner: Fix crash in metainfo loading
Some Bauhaus types seem to have a valid QMetaObject with an empty class name ...
parent
716f2bb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/core/metainfo/metainfo.cpp
View file @
f7ca9efb
...
...
@@ -191,6 +191,12 @@ void MetaInfoPrivate::parseNonQmlClassRecursively(const QMetaObject *qMetaObject
{
Q_ASSERT_X
(
qMetaObject
,
Q_FUNC_INFO
,
"invalid QMetaObject"
);
const
QString
className
=
qMetaObject
->
className
();
if
(
className
.
isEmpty
())
{
qWarning
()
<<
"Meta type system: Registered class has no name."
;
return
;
}
if
(
!
m_q
->
hasNodeMetaInfo
(
className
)
&&
!
QDeclarativeMetaType
::
qmlTypeNames
().
contains
(
typeName
(
qMetaObject
).
toAscii
())
)
{
NodeMetaInfo
nodeMetaInfo
(
*
m_q
);
...
...
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