summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 45c0eb8d4..3d19fd992 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -1310,8 +1310,12 @@ void MainTab::on_location_editingFinished()
if (editMode == IGNORE || acceptingEdit == true)
return;
- if (ui.location->text().isEmpty())
+ if (ui.location->text().isEmpty()) {
+ displayed_dive.dive_site_uuid = 0;
+ markChangedWidget(ui.location);
+ emit diveSiteChanged(0);
return;
+ }
if (currentTrip) {
free(displayedTrip.location);