summaryrefslogtreecommitdiffstats
path: root/qt-models/filtermodels.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-09-21 14:38:10 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-09-21 16:07:24 -0700
commitb3e5e5eef4dd7d64ec98702311f017648cefa856 (patch)
tree3705823ef39e06622e76c79d47c9ba2197f65df5 /qt-models/filtermodels.cpp
parent4f0582ea0b19f044487588a8b1e68b645f4b28cb (diff)
downloadsubsurface-b3e5e5eef4dd7d64ec98702311f017648cefa856.tar.gz
Cleanup: remove bogus assignment in startFilterDiveSites()
In MultiFilterSortModel::startFilterDiveSites(), the setting of the dive sites to be filtered is done later in the code. Therefore, remove the assignment in the first line of the function. Under some circumstances, this would prevent a needed map reload! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/filtermodels.cpp')
-rw-r--r--qt-models/filtermodels.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp
index e9fbb9866..22a0d19cb 100644
--- a/qt-models/filtermodels.cpp
+++ b/qt-models/filtermodels.cpp
@@ -299,7 +299,6 @@ void MultiFilterSortModel::clearFilter()
void MultiFilterSortModel::startFilterDiveSites(QVector<dive_site *> ds)
{
- dive_sites = ds;
if (++diveSiteRefCount > 1) {
setFilterDiveSite(ds);
} else {