[apps] IntervalParameterController::m_interval is set right before the controller appears

and not at controller's construction.
This commit is contained in:
Ruben Dashyan
2019-09-03 15:48:26 +02:00
parent 897b69709e
commit 7ef63f2c61
7 changed files with 16 additions and 7 deletions

View File

@@ -28,6 +28,7 @@ bool IntervalParameterSelectorController::handleEvent(Ion::Events::Event event)
StackViewController * stack = (StackViewController *)parentResponder();
Shared::IntervalParameterController * controller = App::app()->valuesController()->intervalParameterController();
controller->setTitle(messageAtIndex(selectedRow()));
controller->setInterval(App::app()->interval());
stack->push(controller);
return true;
}