mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
filter: internalize shown_dives in DiveFilter class
one piece of global state removed! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
51d0c42a5c
commit
c53bab8965
4 changed files with 14 additions and 9 deletions
|
@ -58,7 +58,7 @@ QHash<int, QByteArray> MobileListModelBase::roleNames() const
|
|||
|
||||
int MobileListModel::shown() const
|
||||
{
|
||||
return shown_dives;
|
||||
return DiveFilter::instance()->shownDives();
|
||||
}
|
||||
|
||||
int MobileListModelBase::columnCount(const QModelIndex &parent) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue