diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-10-30 22:10:31 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-29 08:34:09 -0800 |
commit | c53bab8965a2d5332df55a442a999714b5f700dc (patch) | |
tree | e6fa9c5e6aea6936dea619fb5148874bc0652e6b /qt-models/mobilelistmodel.cpp | |
parent | 51d0c42a5c826350ba189abaf0f57ef1b35381f3 (diff) | |
download | subsurface-c53bab8965a2d5332df55a442a999714b5f700dc.tar.gz |
filter: internalize shown_dives in DiveFilter class
one piece of global state removed!
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/mobilelistmodel.cpp')
-rw-r--r-- | qt-models/mobilelistmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/mobilelistmodel.cpp b/qt-models/mobilelistmodel.cpp index f660af2e6..49e8f4641 100644 --- a/qt-models/mobilelistmodel.cpp +++ b/qt-models/mobilelistmodel.cpp @@ -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 |