[apps] Fix bug in settings: do not set the sub controller table as first

responder when no cell is selected
This commit is contained in:
Émilie Feral
2017-12-18 09:40:14 +01:00
committed by EmilieNumworks
parent afddb87cd4
commit b47cdbb87a

View File

@@ -265,6 +265,8 @@ void SubController::tableViewDidChangeSelection(SelectableTableView * t, int pre
if (previousSelectedCellY == numberOfRows()-1) {
MessageTableCellWithEditableText * myCell = (MessageTableCellWithEditableText *)t->cellAtLocation(previousSelectedCellX, previousSelectedCellY);
myCell->setEditing(false);
}
if (t->selectedRow() >= 0 && t->selectedRow() < numberOfRows()-1) {
app()->setFirstResponder(&m_selectableTableView);
}
if (t->selectedRow() == numberOfRows() -1) {