diff options
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 3 |
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; |