forked from qt-creator/qt-creator
QmlDesigner: Fix puppet crash
Change-Id: I2a408d090c4bbf2c3da7f03473312eff4b7e6c34 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -768,7 +768,8 @@ QObject *ObjectNodeInstance::createComponent(const QString &componentPath, QQmlC
|
||||
qWarning() << error;
|
||||
}
|
||||
|
||||
object->setProperty("__designer_url__", QUrl::fromLocalFile(componentPath));
|
||||
if (object)
|
||||
object->setProperty("__designer_url__", QUrl::fromLocalFile(componentPath));
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user