mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
652b78657e
commit
4713611ea8
2 changed files with 1 additions and 7 deletions
|
@ -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 *)
|
||||
|
|
|
@ -23,7 +23,6 @@ private:
|
|||
Ui::TabDiveSite ui;
|
||||
DiveSiteSortedModel model;
|
||||
QVector<dive_site *> selectedDiveSites();
|
||||
void updateFilter();
|
||||
void hideEvent(QHideEvent *) override;
|
||||
void showEvent(QShowEvent *) override;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue