diff options
Diffstat (limited to 'desktop-widgets/tab-widgets')
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveSite.cpp | 7 | ||||
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveSite.h | 1 |
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; }; |