[apps/reg] Prevent fitting when data not suitable

This commit is contained in:
Léa Saviot
2018-06-08 16:48:59 +02:00
committed by Émilie Feral
parent 4b8462ed8a
commit a8b2183afa
8 changed files with 51 additions and 18 deletions

View File

@@ -84,10 +84,7 @@ void CalculationController::tableViewDidChangeSelection(SelectableTableView * t,
}
bool CalculationController::isEmpty() const {
if (m_store->numberOfPairs() == 0) {
return true;
}
return false;
return m_store->isEmpty();
}
I18n::Message CalculationController::emptyMessage() {