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
......@@ -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.";
if ( !m_q->hasNodeMetaInfo(className)
&& !QDeclarativeMetaType::qmlTypeNames().contains(typeName(qMetaObject).toAscii()) ) {
NodeMetaInfo nodeMetaInfo(*m_q);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment