summaryrefslogtreecommitdiffstats
path: root/qt-models/filtermodels.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-26 16:57:08 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-29 00:09:31 +0000
commitacd44467c1100a1a774cc644921b1dc33dca1266 (patch)
tree819d967b4d41c5b72d357f00d69826b743f07e6f /qt-models/filtermodels.cpp
parentf41bb32428f1e6377b7b293215e8c2f71fa06c9a (diff)
downloadsubsurface-acd44467c1100a1a774cc644921b1dc33dca1266.tar.gz
Dive site: remove [start|stop]FilterDiveSite signals
This is another case of a weird pattern where an object would connect it's own signal to the slot of a different object. There seems to be no reason why the former couldn't simply call the latter. Remove the [start|stop]FilterDiveSite signals of LocationInformationWidget and call the corresponding functions of MultiFilterSortModel directly. While doing so, replace the UUID argument by a pointer-to-divesite. It will be converted anyway right at the beginning of the function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/filtermodels.cpp')
-rw-r--r--qt-models/filtermodels.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp
index 58d0277bd..9e9c6de60 100644
--- a/qt-models/filtermodels.cpp
+++ b/qt-models/filtermodels.cpp
@@ -684,9 +684,9 @@ void MultiFilterSortModel::clearFilter()
myInvalidate();
}
-void MultiFilterSortModel::startFilterDiveSite(uint32_t uuid)
+void MultiFilterSortModel::startFilterDiveSite(struct dive_site *ds)
{
- curr_dive_site = get_dive_site_by_uuid(uuid);
+ curr_dive_site = ds;
myInvalidate();
}