aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilertool.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-04-09 19:07:12 +0200
committerUlf Hermann <ulf.hermann@qt.io>2019-05-06 08:02:29 +0000
commit4cee3c845cd9da5ddeb40fd03fdba7e0d0a32a3f (patch)
treedce1666ed34e6f49f13c3406a93f4cfd778f5638 /src/plugins/qmlprofiler/qmlprofilertool.cpp
parentb374086624535d0b584dc8f9fb4057481aa2d558 (diff)
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>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertool.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertool.cpp2
1 files changed, 1 insertions, 1 deletions
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);