forked from qt-creator/qt-creator
QmlDesigner: Check if view is attached
Task-number: QDS-4382 Change-Id: Ic44d1fad30c5cec65be2cce611fbb37b62c69a6f Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
This commit is contained in:
@@ -92,7 +92,7 @@ QVariant ItemFilterModel::modelNodeBackend() const
|
|||||||
|
|
||||||
void ItemFilterModel::setupModel()
|
void ItemFilterModel::setupModel()
|
||||||
{
|
{
|
||||||
if (!m_modelNode.isValid())
|
if (!m_modelNode.isValid() || !m_modelNode.view()->isAttached())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_lock = true;
|
m_lock = true;
|
||||||
|
Reference in New Issue
Block a user