diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-05-29 23:15:12 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-29 20:59:47 -0700 |
commit | 80fe3f88f92c55400afe87092ef02492f7bafac2 (patch) | |
tree | 1d409a4ffdaed850a022924de9fe6424d1c1222d /qt-models/divelocationmodel.h | |
parent | b0d7d0f3b9beb25a523e5c4db396a859c4562a23 (diff) | |
download | subsurface-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.h')
-rw-r--r-- | qt-models/divelocationmodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divelocationmodel.h b/qt-models/divelocationmodel.h index ee5f3c362..9238c4b5b 100644 --- a/qt-models/divelocationmodel.h +++ b/qt-models/divelocationmodel.h @@ -6,6 +6,7 @@ class LocationInformationModel : public QAbstractListModel { Q_OBJECT public: + enum { DIVE_SITE_UUID = Qt::UserRole+1}; static LocationInformationModel *instance(); int rowCount(const QModelIndex &parent = QModelIndex()) const; QVariant data(const QModelIndex &index = QModelIndex(), int role = Qt::DisplayRole) const; |