mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 07:40:42 +01:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user