mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[escher] SelectableTableView: when reloading data, we temporary deselect
the table. We warn the SelectableTableViewDelegate that the selection change is 'within a temporary selection change' when notifying it of the change.
This commit is contained in:
@@ -65,7 +65,10 @@ void CalculationController::didBecomeFirstResponder() {
|
||||
TabTableController::didBecomeFirstResponder();
|
||||
}
|
||||
|
||||
void CalculationController::tableViewDidChangeSelection(SelectableTableView * t, int previousSelectedCellX, int previousSelectedCellY) {
|
||||
void CalculationController::tableViewDidChangeSelection(SelectableTableView * t, int previousSelectedCellX, int previousSelectedCellY, bool withinTemporarySelection) {
|
||||
if (withinTemporarySelection) {
|
||||
return;
|
||||
}
|
||||
/* To prevent selecting cell with no content (top left corner of the table),
|
||||
* as soon as the selected cell is the top left corner, we either reselect
|
||||
* the previous cell or select the tab controller depending on from which cell
|
||||
|
||||
Reference in New Issue
Block a user