summaryrefslogtreecommitdiffstats
path: root/qt-models/filtermodels.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-11-17 17:41:23 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-19 21:13:40 -0800
commit6d6d10f03a92a9bac5394fc226c398af61f29d66 (patch)
tree55cc04e1ddfc0174973f6ad7e496aa80e07523f9 /qt-models/filtermodels.h
parent2d09819ddfc6bbb4eb9bd7127485f42c839fd85b (diff)
downloadsubsurface-6d6d10f03a92a9bac5394fc226c398af61f29d66.tar.gz
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/filtermodels.h')
-rw-r--r--qt-models/filtermodels.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/qt-models/filtermodels.h b/qt-models/filtermodels.h
index a3397dde6..d4a03d134 100644
--- a/qt-models/filtermodels.h
+++ b/qt-models/filtermodels.h
@@ -72,8 +72,6 @@ slots:
void stopFilterDiveSites();
void resetModel(DiveTripModelBase::Layout layout);
void filterDataChanged(const FilterData &data);
- void divesAdded(struct dive_trip *, bool, const QVector<dive *> &dives);
- void divesDeleted(struct dive_trip *, bool, const QVector<dive *> &dives);
signals:
void filterFinished();