[apps/shared] Fix bug: do not turn off editing mode when selection has

not changed in editable cell table view controller

Change-Id: Icf56a2383272f6c14b5698bd38fd538fd04291dc
This commit is contained in:
Émilie Feral
2017-02-20 11:45:11 +01:00
parent 14d8a04d38
commit 73c366652f

View File

@@ -32,6 +32,9 @@ bool EditableCellTableViewController::textFieldDidFinishEditing(TextField * text
}
void EditableCellTableViewController::tableViewDidChangeSelection(SelectableTableView * t, int previousSelectedCellX, int previousSelectedCellY) {
if (previousSelectedCellX == t->selectedColumn() && previousSelectedCellY == t->selectedRow()) {
return;
}
if (cellAtLocationIsEditable(previousSelectedCellX, previousSelectedCellY)) {
EvenOddEditableTextCell * myCell = (EvenOddEditableTextCell *)t->cellAtLocation(previousSelectedCellX, previousSelectedCellY);
myCell->setEditing(false);