aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/divetripmodel.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-20 15:31:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-21 14:31:37 -0700
commit574757301986ecd2a3c8c9c0150a7d27524731e2 (patch)
tree6fcb86018be9309dd2a18ad6d3d207cd72350bc3 /qt-models/divetripmodel.cpp
parentbd746b1d1b906960196742a9efc1a63653d28afc (diff)
downloadsubsurface-574757301986ecd2a3c8c9c0150a7d27524731e2.tar.gz
mobile/models: make dive invalid flag available to mobile UI
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divetripmodel.cpp')
-rw-r--r--qt-models/divetripmodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp
index 23eda0c51..bcca977b5 100644
--- a/qt-models/divetripmodel.cpp
+++ b/qt-models/divetripmodel.cpp
@@ -244,6 +244,7 @@ QVariant DiveTripModelBase::diveData(const struct dive *d, int column, int role)
case MobileListModel::FirstGasRole: return getFirstGas(d);
case MobileListModel::SelectedRole: return d->selected;
case MobileListModel::DiveInTripRole: return d->divetrip != NULL;
+ case MobileListModel::IsInvalidRole: return d->invalid;
}
#endif
switch (role) {