QmlDesigner: Fix a rare crash

Lack of model existence check causes crash in some situations where
there are other problems in the document.

Change-Id: I239fc55de50e4795a97c60add3c820c6f2c6f73c
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2021-06-14 14:14:14 +03:00
parent c0197f6d30
commit 76c07425b7

View File

@@ -1860,6 +1860,9 @@ void NodeInstanceView::updateWatcher(const QString &path)
void NodeInstanceView::updateRotationBlocks() void NodeInstanceView::updateRotationBlocks()
{ {
if (!model())
return;
QList<ModelNode> qml3DNodes; QList<ModelNode> qml3DNodes;
QSet<ModelNode> rotationKeyframeTargets; QSet<ModelNode> rotationKeyframeTargets;
bool groupsResolved = false; bool groupsResolved = false;