forked from qt-creator/qt-creator
QmlProfiler: stop trying to connect when the application quits
Change-Id: I3b33ced218320a19fd4e4e834093c0f3b67a8cba Task-number: QTCREATORBUG-20499 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -316,6 +316,13 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker)
|
||||
d->m_toolBusy = false;
|
||||
updateRunActions();
|
||||
disconnect(d->m_stopAction, &QAction::triggered, runControl, &RunControl::initiateStop);
|
||||
|
||||
// If we're still trying to connect, stop now.
|
||||
if (d->m_profilerConnections->isConnecting()) {
|
||||
showNonmodalWarning(tr("The application finished before a connection could be "
|
||||
"established. No data was loaded."));
|
||||
d->m_profilerConnections->disconnectFromServer();
|
||||
}
|
||||
};
|
||||
|
||||
connect(runControl, &RunControl::stopped, this, handleStop);
|
||||
|
Reference in New Issue
Block a user