forked from qt-creator/qt-creator
QmlProfiler: Work around incomplete setup
Amends 3844f59806.
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>
This commit is contained in:
@@ -89,6 +89,8 @@ QmlProfilerRunner::~QmlProfilerRunner()
|
|||||||
void QmlProfilerRunner::start()
|
void QmlProfilerRunner::start()
|
||||||
{
|
{
|
||||||
emit starting(this);
|
emit starting(this);
|
||||||
|
if (!d->m_profilerState)
|
||||||
|
QmlProfilerTool::instance()->finalizeRunControl(this);
|
||||||
QTC_ASSERT(d->m_profilerState, return);
|
QTC_ASSERT(d->m_profilerState, return);
|
||||||
reportStarted();
|
reportStarted();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user