summaryrefslogtreecommitdiffstats
path: root/qt-ui/locationinformation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/locationinformation.cpp')
-rw-r--r--qt-ui/locationinformation.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index de7899167..67fb5d5ac 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -140,10 +140,8 @@ void LocationInformationWidget::acceptChanges()
if (dive_site_is_empty(currentDs)) {
delete_dive_site(currentDs->uuid);
displayed_dive.dive_site_uuid = 0;
- setLocationId(0);
- } else {
- setLocationId(currentDs->uuid);
}
+
mark_divelist_changed(true);
resetState();
emit informationManagementEnded();
@@ -156,10 +154,8 @@ void LocationInformationWidget::rejectChanges()
if (dive_site_is_empty(currentDs)) {
delete_dive_site(currentDs->uuid);
displayed_dive.dive_site_uuid = 0;
- setLocationId(0);
- } else {
- setLocationId(currentDs->uuid);
}
+
resetState();
emit informationManagementEnded();
emit coordinatesChanged();