diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp index aa876885883..5788f3b3a52 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp @@ -593,10 +593,12 @@ void PropertyEditorView::modelAttached(Model *model) m_locked = true; if (!m_setupCompleted) { - QTimer::singleShot(50, this, [this]{ - PropertyEditorView::setupPanes(); - /* workaround for QTBUG-75847 */ - reloadQml(); + QTimer::singleShot(50, this, [this] { + if (isAttached()) { + PropertyEditorView::setupPanes(); + /* workaround for QTBUG-75847 */ + reloadQml(); + } }); }