summaryrefslogtreecommitdiffstats
path: root/qt-models/filtermodels.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-05-03 23:37:42 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-11 12:06:19 -0700
commitcd5489e08d4c76b96ae0d388d9efea24134dde8d (patch)
treea57304f2df8f331a76627b84259013aee70cbb11 /qt-models/filtermodels.cpp
parentd29f82c52d604ddf65476bf382d4bbf1b5634525 (diff)
downloadsubsurface-cd5489e08d4c76b96ae0d388d9efea24134dde8d.tar.gz
Map: in dive-site-edit mode, select those maps we filter for
When dive sites are edited, we shouldn't highlight the sites of the current dive, but the currently edited site(s). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/filtermodels.cpp')
-rw-r--r--qt-models/filtermodels.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp
index 663037383..bcadce613 100644
--- a/qt-models/filtermodels.cpp
+++ b/qt-models/filtermodels.cpp
@@ -278,6 +278,11 @@ void MultiFilterSortModel::stopFilterDiveSites()
myInvalidate();
}
+const QVector<dive_site *> &MultiFilterSortModel::filteredDiveSites() const
+{
+ return dive_sites;
+}
+
bool MultiFilterSortModel::diveSiteMode() const
{
return !dive_sites.isEmpty();