aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-models/divetripmodel.cpp2
-rw-r--r--qt-models/divetripmodel.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp
index ce4206cfb..5b7f96ba1 100644
--- a/qt-models/divetripmodel.cpp
+++ b/qt-models/divetripmodel.cpp
@@ -255,6 +255,8 @@ QVariant DiveTripModelBase::diveData(const struct dive *d, int column, int role)
return get_divenr(d);
case SELECTED_ROLE:
return d->selected;
+ case CURRENT_ROLE:
+ return d == current_dive;
}
return QVariant();
}
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h
index 39589a8e6..d0e473f7a 100644
--- a/qt-models/divetripmodel.h
+++ b/qt-models/divetripmodel.h
@@ -49,7 +49,8 @@ public:
DIVE_ROLE,
TRIP_ROLE,
DIVE_IDX,
- SELECTED_ROLE
+ SELECTED_ROLE,
+ CURRENT_ROLE
};
enum Layout {
TREE,