From a045d3ecc6708829cd48a79f12d0cc871b542b2e Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 20 May 2021 13:51:55 +0200 Subject: [PATCH] QmlDesigner: Check if view is attached MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QDS-4382 Change-Id: Ic44d1fad30c5cec65be2cce611fbb37b62c69a6f Reviewed-by: Tomi Korpipää --- .../qmldesigner/components/propertyeditor/itemfiltermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/itemfiltermodel.cpp b/src/plugins/qmldesigner/components/propertyeditor/itemfiltermodel.cpp index fab8cde66eb..8e65559fce1 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/itemfiltermodel.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/itemfiltermodel.cpp @@ -92,7 +92,7 @@ QVariant ItemFilterModel::modelNodeBackend() const void ItemFilterModel::setupModel() { - if (!m_modelNode.isValid()) + if (!m_modelNode.isValid() || !m_modelNode.view()->isAttached()) return; m_lock = true;