From 6d6d10f03a92a9bac5394fc226c398af61f29d66 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 17 Nov 2019 17:41:23 +0100 Subject: Filter: move calculation of shown dives to undo command The filter-model was catching dives-added / dives-deleted signals from the models to keep track of the number of shown dives. To simplify the data flow, do this directly in the undo-command. Signed-off-by: Berthold Stoeger --- core/subsurface-qt/DiveListNotifier.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/subsurface-qt') diff --git a/core/subsurface-qt/DiveListNotifier.h b/core/subsurface-qt/DiveListNotifier.h index cda7ea335..475f2ddbe 100644 --- a/core/subsurface-qt/DiveListNotifier.h +++ b/core/subsurface-qt/DiveListNotifier.h @@ -92,6 +92,9 @@ signals: void diveSiteChanged(dive_site *ds, int field); // field according to LocationInformationModel void diveSiteDivesChanged(dive_site *ds); // The dives associated with that site changed + // Filter-related signals + void numShownChanged(); + // This signal is emited every time a command is executed. // This is used to hide an old multi-dives-edited warning message. // This is necessary, so that the user can't click on the "undo" button and undo -- cgit v1.2.3-70-g09d2