forked from qt-creator/qt-creator
QmlDesigner: Fix crash in material browser
Task-number: QDS-7191 Change-Id: I9542a227aeb3f462ff3572e9a07a7473f98bfa61 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
c97d056334
commit
ff5b29dfd4
@@ -107,6 +107,9 @@ void MaterialBrowserView::modelAttached(Model *model)
|
||||
|
||||
void MaterialBrowserView::refreshModel(bool updateImages)
|
||||
{
|
||||
if (!model() || !model()->nodeInstanceView())
|
||||
return;
|
||||
|
||||
ModelNode matLib = modelNodeForId(Constants::MATERIAL_LIB_ID);
|
||||
QList <ModelNode> materials;
|
||||
|
||||
|
Reference in New Issue
Block a user