summaryrefslogtreecommitdiffstats
path: root/qt-models/divelocationmodel.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-05-29 23:15:12 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-29 20:59:47 -0700
commit80fe3f88f92c55400afe87092ef02492f7bafac2 (patch)
tree1d409a4ffdaed850a022924de9fe6424d1c1222d /qt-models/divelocationmodel.cpp
parentb0d7d0f3b9beb25a523e5c4db396a859c4562a23 (diff)
downloadsubsurface-80fe3f88f92c55400afe87092ef02492f7bafac2.tar.gz
Correctly set the dive site id on the dive
When changing the index of the combobox we were discarting the dive_site_id. This fixes it. Now I need to understand what's happening to the globe. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelocationmodel.cpp')
-rw-r--r--qt-models/divelocationmodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divelocationmodel.cpp b/qt-models/divelocationmodel.cpp
index 973452b16..164d85d95 100644
--- a/qt-models/divelocationmodel.cpp
+++ b/qt-models/divelocationmodel.cpp
@@ -25,6 +25,7 @@ QVariant LocationInformationModel::data(const QModelIndex &index, int role) cons
switch(role) {
case Qt::DisplayRole : return qPrintable(ds->name);
+ case DIVE_SITE_UUID : return ds->uuid;
}
return QVariant();