[apps] Implement reset tab selection when setting exam mode

Change-Id: If448b28e3232945102b273f61509a6bda1ce6df7
This commit is contained in:
Émilie Feral
2017-05-19 13:27:12 +02:00
parent c19a70bf4c
commit 90b0c16f1f
3 changed files with 3 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ void App::Snapshot::reset() {
m_store.setDefault();
m_modelVersion = 0;
m_rangeVersion = 0;
setActiveTab(0);
}
App::Descriptor * App::Snapshot::descriptor() {

View File

@@ -38,6 +38,7 @@ void FunctionApp::Snapshot::reset() {
m_interval.setStep(1);
m_modelVersion = 0;
m_rangeVersion = 0;
setActiveTab(0);
}
FunctionApp::FunctionApp(Container * container, Snapshot * snapshot, ViewController * rootViewController) :

View File

@@ -39,6 +39,7 @@ void App::Snapshot::reset() {
m_rangeVersion = 0;
m_selectedHistogramBarIndex = 0;
m_selectedBoxQuantile = BoxView::Quantile::Min;
setActiveTab(0);
}
App::Descriptor * App::Snapshot::descriptor() {