QmlDesigner: Fix crash on exit

Change-Id: If02837c0af08b037a10e0f91172eafb757e0c81f
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2023-09-08 09:31:49 +02:00
parent a1f773bb66
commit 17da102695

View File

@@ -768,6 +768,8 @@ void ConnectionModelBackendDelegate::setCurrentRow(int i)
qDebug() << Q_FUNC_INFO << i << model;
QTC_ASSERT(model, return );
if (!model->connectionView()->isAttached())
return;
SignalHandlerProperty signalHandlerProperty = model->signalHandlerPropertyForRow(currentRow());