Commit 434b51dc authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: finalize setup when starting

Change-Id: If7cf8158bf4c0cd6a2ffff2d5157a98f2d8c0f50
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent b85c0204
......@@ -106,6 +106,7 @@ QmlProfilerRunControl::~QmlProfilerRunControl()
bool QmlProfilerRunControl::startEngine()
{
d->m_tool->finalizeRunControl(this);
QTC_ASSERT(d->m_profilerState, return false);
if (connection().analyzerPort != 0)
......@@ -252,11 +253,6 @@ void QmlProfilerRunControl::registerProfilerStateManager( QmlProfilerStateManage
this, &QmlProfilerRunControl::profilerStateChanged);
}
void QmlProfilerRunControl::finalizeSetup()
{
d->m_tool->finalizeRunControl(this);
}
void QmlProfilerRunControl::profilerStateChanged()
{
switch (d->m_profilerState->currentState()) {
......
......@@ -45,7 +45,6 @@ public:
~QmlProfilerRunControl();
void registerProfilerStateManager( QmlProfilerStateManager *profilerState );
void finalizeSetup();
void notifyRemoteSetupDone(quint16 port);
StopResult stop();
......
......@@ -98,7 +98,6 @@ RunControl *QmlProfilerRunControlFactory::create(RunConfiguration *runConfigurat
runControl->setRunnable(runnable);
runControl->setConnection(connection);
runControl->finalizeSetup();
LocalQmlProfilerRunner::Configuration conf;
conf.executable = runnable.debuggee;
......
......@@ -527,7 +527,6 @@ void QmlProfilerTool::startRemoteTool()
auto runControl = qobject_cast<QmlProfilerRunControl *>(createRunControl(0));
runControl->setConnection(connection);
runControl->finalizeSetup();
ProjectExplorerPlugin::startRunControl(runControl, ProjectExplorer::Constants::QML_PROFILER_RUN_MODE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment