[apps/probability] Avoid a local snapshot cast

This commit is contained in:
Romain Goyet
2019-06-03 14:48:24 +02:00
committed by EmilieNumworks
parent 581ec55832
commit e5f7b93efb
4 changed files with 4 additions and 6 deletions

View File

@@ -79,8 +79,7 @@ CalculationController::CalculationController(Responder * parentResponder, InputE
}
void CalculationController::didEnterResponderChain(Responder * previousResponder) {
App::Snapshot * snapshot = (App::Snapshot *)app()->snapshot();
snapshot->setActivePage(App::Snapshot::Page::Calculations);
app()->snapshot()->setActivePage(App::Snapshot::Page::Calculations);
updateTitle();
reloadLawCurveView();
m_selectableTableView.reloadData();