QmlProfiler: Restore feature visibility when starting data aquisition

Some models check the visibility to determine what to load.

Change-Id: I94d42ddc6e531d04f240c66d4b789826d8c17cf6
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Ulf Hermann
2016-04-28 15:51:39 +02:00
parent 807e074ffc
commit 67378a7928

View File

@@ -764,6 +764,7 @@ void QmlProfilerTool::profilerDataModelStateChanged()
clearDisplay();
break;
case QmlProfilerModelManager::AcquiringData :
restoreFeatureVisibility();
d->m_recordButton->setEnabled(true); // Press recording button to stop recording
setButtonsEnabled(false); // Other buttons disabled
break;
@@ -776,7 +777,6 @@ void QmlProfilerTool::profilerDataModelStateChanged()
d->m_profilerState->setCurrentState(QmlProfilerStateManager::Idle);
showSaveOption();
updateTimeDisplay();
restoreFeatureVisibility();
d->m_recordButton->setEnabled(true);
setButtonsEnabled(true);
break;