Filter: move num_shown logic from model to core

Since the number of shown dives is stored in the core, let's also
keep it updated there.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-11-17 18:32:35 +01:00 committed by Dirk Hohndel
parent b76f207158
commit 9ffafbc326
4 changed files with 18 additions and 20 deletions

View file

@ -1377,7 +1377,6 @@ void DiveTripModelList::filterFinished()
// In list mode, we don't have to change anything after filter finished.
}
// Simple sorting helper for sorting against a criterium and if
// that is undefined against a different criterium.
// Return true if diff1 < 0, false if diff1 > 0.