mobile/models: make dive invalid flag available to mobile UI

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-03-20 15:31:46 -07:00
parent bd746b1d1b
commit 5747573019
3 changed files with 3 additions and 0 deletions

View file

@ -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) {