aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-06-04 00:33:03 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-03 21:45:26 -0700
commit203c3e3077f60928d2c05511a805af85c5ea5fd3 (patch)
tree9bae92bff39061c077062f51cf81a04135732e0e /qt-ui
parent8ff78263029e233ff3efb3895f91b85c745bb4a2 (diff)
downloadsubsurface-203c3e3077f60928d2c05511a805af85c5ea5fd3.tar.gz
Fix acceptChanges for add mode
We didn't save the uuid of the newly created dive site on the affected dive. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/locationinformation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index 9f1262bb3..9f210ced2 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -87,6 +87,8 @@ void LocationInformationWidget::acceptChanges()
free(currentDs->notes);
currentDs->notes = copy_string(uiString);
}
+ if (current_mode == CREATE_DIVE_SITE)
+ displayed_dive.dive_site_uuid = currentDs->uuid;
if (dive_site_is_empty(currentDs)) {
LocationInformationModel::instance()->removeRow(get_divesite_idx(currentDs));
displayed_dive.dive_site_uuid = 0;