forked from qt-creator/qt-creator
QmlDesigner: Fix crash
The timer can timeout after a detach. Change-Id: I7eafe0a3d666942841cc0ee64d850acfab418c7c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
626e1175a6
commit
cbd96ef312
@@ -593,10 +593,12 @@ void PropertyEditorView::modelAttached(Model *model)
|
|||||||
m_locked = true;
|
m_locked = true;
|
||||||
|
|
||||||
if (!m_setupCompleted) {
|
if (!m_setupCompleted) {
|
||||||
QTimer::singleShot(50, this, [this]{
|
QTimer::singleShot(50, this, [this] {
|
||||||
|
if (isAttached()) {
|
||||||
PropertyEditorView::setupPanes();
|
PropertyEditorView::setupPanes();
|
||||||
/* workaround for QTBUG-75847 */
|
/* workaround for QTBUG-75847 */
|
||||||
reloadQml();
|
reloadQml();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user