[apps/calculation] Deselect table when deleting all rows

Change-Id: Ia0f7f931669bdc2664ff99e3a9694652783812bd
This commit is contained in:
Émilie Feral
2017-04-24 10:19:16 +02:00
parent f3eb2b80df
commit 2b5e1c31bf
3 changed files with 13 additions and 0 deletions

View File

@@ -73,6 +73,9 @@ bool SelectableTableView::selectCellAtLocation(int i, int j) {
}
HighlightCell * SelectableTableView::selectedCell() {
if (m_selectedCellX < 0 || m_selectedCellY < 0) {
return nullptr;
}
return cellAtLocation(m_selectedCellX, m_selectedCellY);
}