aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilertool.cpp
diff options
context:
space:
mode:
authorAndrii Semkiv <[email protected]>2024-10-23 09:17:06 +0200
committerAndrii Semkiv <[email protected]>2024-10-23 09:48:13 +0000
commita22e79f38c13b652ad9639ee810647fc0c0e96b0 (patch)
tree273095157094e959ef8463ac8ee5bbb06b17c15a /src/plugins/qmlprofiler/qmlprofilertool.cpp
parent48c311b8f354900fc4ce47bc2737aee1bab0809f (diff)
QML Profiler: Fix server URL
QMLProfileRunner should use server URL from the ports gatherer instead of trying to read it from the data record. Amends: 94b63ad3b4b13dbad0277341f71c5d8f5ea1c6b2 Fixes: QTCREATORBUG-31847 Change-Id: Id54429f09cc10f17d763ede6db4df1fad8a323fe Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertool.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertool.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp
index 7df40076f18..7b554b22cfa 100644
--- a/src/plugins/qmlprofiler/qmlprofilertool.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp
@@ -603,8 +603,9 @@ ProjectExplorer::RunControl *QmlProfilerTool::attachToWaitingApplication()
auto runControl = new RunControl(ProjectExplorer::Constants::QML_PROFILER_RUN_MODE);
runControl->copyDataFromRunConfiguration(ProjectManager::startupRunConfiguration());
- auto profiler = new QmlProfilerRunner(runControl);
- profiler->setServerUrl(serverUrl);
+ // The object as such is needed, the RunWorker becomes part of the RunControl at construction time,
+ // similar to how QObject children are owned by their parents
+ [[maybe_unused]] auto profiler = new QmlProfilerRunner(runControl);
connect(d->m_profilerConnections, &QmlProfilerClientManager::connectionClosed,
runControl, &RunControl::initiateStop);