[statistics] MultipleDataViewController: always select the right subview

(the controlled view might have been destroyed -returing to home for
instance)
This commit is contained in:
Émilie Feral
2018-11-14 17:24:06 +01:00
committed by LeaNumworks
parent bfc24f86c9
commit 592ae15499

View File

@@ -30,8 +30,8 @@ void MultipleDataViewController::viewWillAppear() {
multipleDataView()->setDisplayBanner(true);
if (*m_selectedSeriesIndex < 0) {
*m_selectedSeriesIndex = multipleDataView()->seriesOfSubviewAtIndex(0);
multipleDataView()->selectDataView(*m_selectedSeriesIndex);
}
multipleDataView()->selectDataView(*m_selectedSeriesIndex);
reloadBannerView();
multipleDataView()->reload();
}