From 3eabb80398a35472d62c05d6d91293bdc74c9c2a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 23 Oct 2018 22:14:54 +0100 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveList.qml | 1 + 1 file changed, 1 insertion(+) 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() } }