summaryrefslogtreecommitdiffstats
path: root/qt-models/mobilelistmodel.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-30 22:10:31 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-29 08:34:09 -0800
commitc53bab8965a2d5332df55a442a999714b5f700dc (patch)
treee6fa9c5e6aea6936dea619fb5148874bc0652e6b /qt-models/mobilelistmodel.cpp
parent51d0c42a5c826350ba189abaf0f57ef1b35381f3 (diff)
downloadsubsurface-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.cpp2
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