diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-06-03 22:32:13 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-03 21:28:04 -0700 |
commit | 1ee96f4ad655369114648d0e3ba13444ba38e7b9 (patch) | |
tree | 11e97f007318d90a782d2f63b104b526becade26 /qt-ui/maintab.h | |
parent | ef10490e037c435cac8b1089cb9130d260351ad2 (diff) | |
download | subsurface-1ee96f4ad655369114648d0e3ba13444ba38e7b9.tar.gz |
Don't rely on current_dive to get the dive site id
Since we are modifying the dive site inside of the dive, we can't ask the
dive for the new one, and we also can't use the name of the dive site, as
there's the possibility that two or more could have the same name, so rely
only on the index of it to get the uuid. The index is variable since we
will sort the dive_site_table alphabetically, but this doesn't matter
since we are using it only temporarely to get the uuid, and this one never
changes.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r-- | qt-ui/maintab.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h index 2d2f9679c..7fb06bc88 100644 --- a/qt-ui/maintab.h +++ b/qt-ui/maintab.h @@ -57,6 +57,7 @@ signals: void addDiveFinished(); void dateTimeChanged(); void requestDiveSiteEdit(uint32_t uuid); + void diveSiteChanged(); public slots: void addCylinder_clicked(); @@ -64,7 +65,7 @@ slots: void updateDiveInfo(bool clear = false); void acceptChanges(); void rejectChanges(); - void on_location_currentTextChanged(const QString &text); + void on_location_currentIndexChanged(int idx); void on_divemaster_textChanged(); void on_buddy_textChanged(); void on_suit_textChanged(const QString &text); |