forked from qt-creator/qt-creator
QML Profiler: Fix Stop button connection
QML Profiler mistakenly expected a wrong stop signal:
it was bound to `RunControl::stopped` (which apparently arrives
only when the remote debugging is completely stopped),
instead of `QmlProfilerRunner::stopped`, which is issued
when QML profiling is stopped.
Fixes: QTCREATORBUG-31372
Change-Id: I1582894f1ebe8681d8e504a626eb46e5a81f72a5
(cherry picked from commit 3ff0d5c8eb)
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -378,7 +378,7 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker)
|
||||
d->m_profilerConnections->disconnectFromServer();
|
||||
};
|
||||
|
||||
connect(runControl, &RunControl::stopped, this, handleStop);
|
||||
connect(runWorker, &QmlProfilerRunner::stopped, this, handleStop);
|
||||
connect(d->m_stopAction, &QAction::triggered, runControl, &RunControl::initiateStop);
|
||||
|
||||
updateRunActions();
|
||||
|
||||
Reference in New Issue
Block a user