[apps/calculation] Correct bug: set the right cell first responder

Change-Id: Iafee70a6a3bcf59c60efb4575b044b19fa5c1db4
This commit is contained in:
Émilie Feral
2016-10-28 09:48:41 +02:00
parent 5133f75789
commit 00a0dd182f
3 changed files with 8 additions and 2 deletions

View File

@@ -61,8 +61,9 @@ bool HistoryController::handleEvent(Ion::Events::Event event) {
}
void HistoryController::tableViewDidChangeSelection(SelectableTableView * t) {
m_calculationHistory[t->selectedRow()].setParentResponder(t);
app()->setFirstResponder(&m_calculationHistory[t->selectedRow()]);
HistoryViewCell * selectedCell = (HistoryViewCell *)(t->selectedCell());
selectedCell->setParentResponder(t);
app()->setFirstResponder(selectedCell);
}
int HistoryController::numberOfRows() {