From 4cee3c845cd9da5ddeb40fd03fdba7e0d0a32a3f Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 9 Apr 2019 19:07:12 +0200 Subject: [PATCH] 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 --- src/plugins/qmlprofiler/qmlprofilertool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index 0e87673c7f6..d7fa2fd7a96 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -318,8 +318,8 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker) if (d->m_profilerConnections->isConnecting()) { showNonmodalWarning(tr("The application finished before a connection could be " "established. No data was loaded.")); - d->m_profilerConnections->disconnectFromServer(); } + d->m_profilerConnections->disconnectFromServer(); }; connect(runControl, &RunControl::stopped, this, handleStop);