forked from qt-creator/qt-creator
ProjectExplorer: Remove virtual RunControl start/stop trampolin
Not needed anymore, effectively replaced by RunWorker start/stop. Change-Id: I7483c841cdd4e05c9e1f7636a27b20ece37947c2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -102,7 +102,7 @@ QmlProfilerRunner::QmlProfilerRunner(RunControl *runControl)
|
||||
QmlProfilerRunner::~QmlProfilerRunner()
|
||||
{
|
||||
if (runControl()->isRunning() && d->m_profilerState)
|
||||
runControl()->stop();
|
||||
runControl()->initiateStop();
|
||||
delete d;
|
||||
}
|
||||
|
||||
|
||||
@@ -342,10 +342,10 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker)
|
||||
connect(runControl, &RunControl::finished, this, [this, runControl] {
|
||||
d->m_toolBusy = false;
|
||||
updateRunActions();
|
||||
disconnect(d->m_stopAction, &QAction::triggered, runControl, &RunControl::stop);
|
||||
disconnect(d->m_stopAction, &QAction::triggered, runControl, &RunControl::initiateStop);
|
||||
});
|
||||
|
||||
connect(d->m_stopAction, &QAction::triggered, runControl, &RunControl::stop);
|
||||
connect(d->m_stopAction, &QAction::triggered, runControl, &RunControl::initiateStop);
|
||||
|
||||
updateRunActions();
|
||||
runWorker->registerProfilerStateManager(d->m_profilerState);
|
||||
|
||||
Reference in New Issue
Block a user