aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-23 19:13:22 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-23 22:07:42 +0100
commitca211c03e00998e4f051c760c0f335978685704c (patch)
treed37b34a85e01ca31debad43c9547d2c7948a4133 /desktop-widgets
parent954553b878c73f0705f1657fab2a2ddc88621ece (diff)
downloadsubsurface-ca211c03e00998e4f051c760c0f335978685704c.tar.gz
Dive site: remove webservice code in MainTab::updateDiveSite()
There was still code in MainTab::updateDiveSite() related to dive-sites obtained from the obsolete web-service. Remove. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index 6f3691d3d..3dea277fb 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -702,14 +702,6 @@ uint32_t MainTab::updateDiveSite(uint32_t pickedUuid, dive *d)
}
}
- if (origDs && pickedUuid != origDs->uuid && same_string(origDs->notes, "SubsurfaceWebservice")) {
- if (!is_dive_site_used(origDs->uuid, false)) {
- if (verbose)
- qDebug() << "delete the autogenerated dive site" << origDs->name;
- delete_dive_site(origDs->uuid);
- }
- }
-
d->dive_site_uuid = pickedUuid;
qDebug() << "Setting the dive site id on the dive:" << pickedUuid;
return pickedUuid;