diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-10-23 22:14:54 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-23 22:45:30 +0100 |
commit | 3eabb80398a35472d62c05d6d91293bdc74c9c2a (patch) | |
tree | ffa4292d1b8beeb17cccc7be631bcbe8604f958f /mobile-widgets/qml | |
parent | 6248ddf5296538fb7c3b092624c318ebf5f56027 (diff) | |
download | subsurface-3eabb80398a35472d62c05d6d91293bdc74c9c2a.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 9c12a8092..9f6321d55 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -499,6 +499,7 @@ Kirigami.ScrollablePage { onTriggered: { rootItem.filterToggle = !rootItem.filterToggle diveModel.resetFilter() + numShownText = diveModel.shown() } } |