aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-08-30 15:41:32 +0200
committerhjk <hjk@qt.io>2019-09-02 13:04:50 +0000
commit11badef44ea2cbc94ecdcee63829a0a26936fcbf (patch)
treef4c9ca254d1222356db97c6772090fd6ad861243 /src/plugins/qmlprofiler
parent66435024a45ada83897e31b777552121d80e88f7 (diff)
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 <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp2
1 files changed, 2 insertions, 0 deletions
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();
}