From 119a7dfd201aeaf892f6f4a351911c1f0102be9c Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 11 Mar 2016 09:42:14 +0100 Subject: [PATCH] QmlProfiler: Fix running state If a run finished not by using the 'Stop Profiling' button the Application Output pane still handled the respective tab as running. Change-Id: I283bea73fe9df86a89e6130ad6737a86e1dc0341 Reviewed-by: hjk Reviewed-by: Ulf Hermann --- src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp b/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp index 48ca56a213e..ec78fe1c758 100644 --- a/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp @@ -164,6 +164,7 @@ void QmlProfilerRunControl::notifyRemoteFinished() switch (d->m_profilerState->currentState()) { case QmlProfilerStateManager::AppRunning: d->m_profilerState->setCurrentState(QmlProfilerStateManager::AppDying); + d->m_running = false; emit finished(); break; case QmlProfilerStateManager::Idle: @@ -193,6 +194,7 @@ void QmlProfilerRunControl::cancelProcess() return; } } + d->m_running = false; emit finished(); } @@ -222,6 +224,7 @@ void QmlProfilerRunControl::wrongSetupMessageBox(const QString &errorMessage) // KILL d->m_profilerState->setCurrentState(QmlProfilerStateManager::AppDying); d->m_noDebugOutputTimer.stop(); + d->m_running = false; emit finished(); } @@ -268,6 +271,7 @@ void QmlProfilerRunControl::profilerStateChanged() { switch (d->m_profilerState->currentState()) { case QmlProfilerStateManager::Idle: + d->m_running = false; emit finished(); d->m_noDebugOutputTimer.stop(); break;