diff options
Diffstat (limited to 'qt-models/divelocationmodel.cpp')
-rw-r--r-- | qt-models/divelocationmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/divelocationmodel.cpp b/qt-models/divelocationmodel.cpp index 43ab8eac7..c1a7308f4 100644 --- a/qt-models/divelocationmodel.cpp +++ b/qt-models/divelocationmodel.cpp @@ -59,8 +59,8 @@ QVariant LocationInformationModel::getDiveSiteData(const struct dive_site *ds, i else return QVariant(); } - case UUID_ROLE: - return ds->uuid; + case DIVESITE_ROLE: + return QVariant::fromValue<void *>((void *)ds); // Not nice: casting away const } return QVariant(); } |