Mobile/filtering: update number of dives shown when resetting filter

Otherwise we start showing an illogical '0' there when first opening the filter
dialog, and the equally wrong previous count when closing and then re-opening
the filter dialog.

Reported-by: Jan Mulder <jlmulder@xs4all.nl>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-10-23 22:14:54 +01:00
parent 6248ddf529
commit 3eabb80398

View file

@ -499,6 +499,7 @@ Kirigami.ScrollablePage {
onTriggered: {
rootItem.filterToggle = !rootItem.filterToggle
diveModel.resetFilter()
numShownText = diveModel.shown()
}
}