summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 0288e7107..1fd5f74cb 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -909,6 +909,9 @@ QVariant TripItem::data(int column, int role) const
{
QVariant ret;
+ if (role == DiveTripModel::TRIP_ROLE)
+ return QVariant::fromValue<void*>(trip);
+
if (role == DiveTripModel::SORT_ROLE)
return (qulonglong)trip->when;