forked from qt-creator/qt-creator
QmlProfiler: Unconditionally disconnect on handleStop
We need to do this in the remote connect case as the application itself will not disconnect. Fixes: QTCREATORBUG-22273 Change-Id: I1b343fd7d8658ce8d9aa5bf21b610940507d0dd4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -318,8 +318,8 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker)
|
|||||||
if (d->m_profilerConnections->isConnecting()) {
|
if (d->m_profilerConnections->isConnecting()) {
|
||||||
showNonmodalWarning(tr("The application finished before a connection could be "
|
showNonmodalWarning(tr("The application finished before a connection could be "
|
||||||
"established. No data was loaded."));
|
"established. No data was loaded."));
|
||||||
d->m_profilerConnections->disconnectFromServer();
|
|
||||||
}
|
}
|
||||||
|
d->m_profilerConnections->disconnectFromServer();
|
||||||
};
|
};
|
||||||
|
|
||||||
connect(runControl, &RunControl::stopped, this, handleStop);
|
connect(runControl, &RunControl::stopped, this, handleStop);
|
||||||
|
|||||||
Reference in New Issue
Block a user