From 11badef44ea2cbc94ecdcee63829a0a26936fcbf Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 30 Aug 2019 15:41:32 +0200 Subject: QmlProfiler: Work around incomplete setup Amends 3844f598061. Some RunControl::registerWorkerCreator(ProjectExplorer::Constants::QML_PROFILER_RUN_MODE, [this](RunControl *runControl) { auto runner = new QmlProfilerRunner(runControl); connect(runner, &QmlProfilerRunner::starting, &d->m_profilerTool, &QmlProfilerTool::finalizeRunControl); return runner; }); hunk disappeared. This here has the same effect. Change-Id: Ib81a78944145cc2075bfcb931691adf214f3560d Reviewed-by: Ulf Hermann --- src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/qmlprofiler') diff --git a/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp b/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp index 4d56267ca4..460766ec0f 100644 --- a/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp @@ -89,6 +89,8 @@ QmlProfilerRunner::~QmlProfilerRunner() void QmlProfilerRunner::start() { emit starting(this); + if (!d->m_profilerState) + QmlProfilerTool::instance()->finalizeRunControl(this); QTC_ASSERT(d->m_profilerState, return); reportStarted(); } -- cgit v1.2.3