QmlProfiler: set the client recording state correctly

If a change was triggered from the profiled application we still need
to update the client recording state for the UI to stay consistent.

Change-Id: I2955bd9f2da27a2c32ac93e33742ee5fefbd2751
Task-number: QTCREATORBUG-13322
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2014-11-03 14:47:02 +01:00
committed by Ulf Hermann
parent 99f4b6353d
commit 6264f7cb4d

View File

@@ -348,6 +348,7 @@ void QmlProfilerTool::setRecording(bool recording)
QLatin1String(":/qmlprofiler/recordOff.png")));
d->m_recordButton->setChecked(recording);
d->m_profilerState->setClientRecording(recording);
// manage timer
if (d->m_profilerState->currentState() == QmlProfilerStateManager::AppRunning) {