summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-03-13 19:42:52 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commit0fd85832b7f628d1bb6d308c11b5e53ea1e9f65b (patch)
treef4d3aa47bcca46a43cdd205dd4eb1ab32950deab /desktop-widgets
parentf022a4a4d0d3c0c022b6ce2b7b11c0ff9bf8089d (diff)
downloadsubsurface-0fd85832b7f628d1bb6d308c11b5e53ea1e9f65b.tar.gz
Dive site: remove implicit deletion of empty dive sites
There was a way of deleting dive sites by clearing all fields. This is not necessary anymore, as now the user can delete a dive site in the dive site list. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/locationinformation.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp
index d827f5006..0da3e12ee 100644
--- a/desktop-widgets/locationinformation.cpp
+++ b/desktop-widgets/locationinformation.cpp
@@ -212,11 +212,6 @@ void LocationInformationWidget::acceptChanges()
if (!ui.diveSiteCoordinates->text().isEmpty())
parseGpsText(ui.diveSiteCoordinates->text(), diveSite->location);
- if (dive_site_is_empty(diveSite)) {
- LocationInformationModel::instance()->removeRow(get_divesite_idx(diveSite, &dive_site_table));
- displayed_dive.dive_site = nullptr;
- diveSite = nullptr;
- }
mark_divelist_changed(true);
resetState();
}