[apps] Graph: setType of the graph controller before updating the stack

(to reload the right banner view)
This commit is contained in:
Émilie Feral
2018-01-08 18:06:39 +01:00
committed by EmilieNumworks
parent d1808ae26f
commit e1b09b639d
2 changed files with 4 additions and 3 deletions

View File

@@ -34,10 +34,10 @@ bool CalculationParameterController::handleEvent(Ion::Events::Event event) {
switch(selectedRow()) {
case 4:
{
m_graphController->setType(GraphView::Type::Tangent);
StackViewController * stack = (StackViewController *)parentResponder();
stack->pop();
stack->pop();
m_graphController->setType(GraphView::Type::Tangent);
stack->push(m_graphController);
return true;
}