Skip to content
Snippets Groups Projects
Commit f7ca9efb authored by Kai Koehne's avatar 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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment