From 67378a7928af1d3ed91d0f704ae71a3e1381c8f4 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 28 Apr 2016 15:51:39 +0200 Subject: [PATCH] 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 --- src/plugins/qmlprofiler/qmlprofilertool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index 33da2c02977..d1e09754edc 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -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;