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:
Andrii Semkiv
2024-10-29 10:50:56 +01:00
committed by hjk
parent ff3e6a644a
commit feac22e6e3

View File

@@ -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();