forked from qt-creator/qt-creator
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:
@@ -768,6 +768,8 @@ void ConnectionModelBackendDelegate::setCurrentRow(int i)
|
|||||||
qDebug() << Q_FUNC_INFO << i << model;
|
qDebug() << Q_FUNC_INFO << i << model;
|
||||||
|
|
||||||
QTC_ASSERT(model, return );
|
QTC_ASSERT(model, return );
|
||||||
|
if (!model->connectionView()->isAttached())
|
||||||
|
return;
|
||||||
|
|
||||||
SignalHandlerProperty signalHandlerProperty = model->signalHandlerPropertyForRow(currentRow());
|
SignalHandlerProperty signalHandlerProperty = model->signalHandlerPropertyForRow(currentRow());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user