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:
Ulf Hermann
2019-04-09 19:07:12 +02:00
parent b374086624
commit 4cee3c845c

View File

@@ -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);