summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-31 08:17:38 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-09-06 11:48:47 -0700
commit4713611ea8132f3c4b11b0a5409d500a5d271dd7 (patch)
tree321611276fb01403dfabef8ae3854068862d59d2
parent652b78657ebe18ff101d3f6cd2ac9f3458db1881 (diff)
downloadsubsurface-4713611ea8132f3c4b11b0a5409d500a5d271dd7.tar.gz
Cleanup: remove TabDiveSite::updateFilter() function
This one-liner was called in only one place from the same class. Just fold it into the caller. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--desktop-widgets/tab-widgets/TabDiveSite.cpp7
-rw-r--r--desktop-widgets/tab-widgets/TabDiveSite.h1
2 files changed, 1 insertions, 7 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveSite.cpp b/desktop-widgets/tab-widgets/TabDiveSite.cpp
index 7deff3d9d..ee232b703 100644
--- a/desktop-widgets/tab-widgets/TabDiveSite.cpp
+++ b/desktop-widgets/tab-widgets/TabDiveSite.cpp
@@ -95,14 +95,9 @@ QVector<dive_site *> TabDiveSite::selectedDiveSites()
return sites;
}
-void TabDiveSite::updateFilter()
-{
- MultiFilterSortModel::instance()->setFilterDiveSite(selectedDiveSites());
-}
-
void TabDiveSite::selectionChanged(const QItemSelection &, const QItemSelection &)
{
- updateFilter();
+ MultiFilterSortModel::instance()->setFilterDiveSite(selectedDiveSites());
}
void TabDiveSite::showEvent(QShowEvent *)
diff --git a/desktop-widgets/tab-widgets/TabDiveSite.h b/desktop-widgets/tab-widgets/TabDiveSite.h
index ead94af5b..5927b08a0 100644
--- a/desktop-widgets/tab-widgets/TabDiveSite.h
+++ b/desktop-widgets/tab-widgets/TabDiveSite.h
@@ -23,7 +23,6 @@ private:
Ui::TabDiveSite ui;
DiveSiteSortedModel model;
QVector<dive_site *> selectedDiveSites();
- void updateFilter();
void hideEvent(QHideEvent *) override;
void showEvent(QShowEvent *) override;
};