[apps/shared] In list controller, fix bug in clearing function

expressions

Change-Id: I58a58558cd02b51b3a8e5afbb5f7a7103373dfa7
This commit is contained in:
Émilie Feral
2017-04-03 15:55:45 +02:00
parent f28230b06a
commit c893a4611e

View File

@@ -212,6 +212,7 @@ bool ListController::handleEvent(Ion::Events::Event event) {
(m_selectableTableView.selectedRow() < numberOfRows() - 1 || m_functionStore->numberOfFunctions() == m_functionStore->maxNumberOfFunctions())) {
Shared::Function * function = m_functionStore->functionAtIndex(functionIndexForRow(m_selectableTableView.selectedRow()));
reinitExpression(function);
return true;
}
if ((event.hasText() || event == Ion::Events::XNT)
&& m_selectableTableView.selectedColumn() == 1