summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-06-04 00:19:47 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-03 21:42:40 -0700
commit3561d347457fa99fbe6a1f46e7e14a39d313f6be (patch)
tree2b6f4c80fc095eff72dc2a826c51c9fe68573886 /qt-ui
parent9c34f196fa0b0ccf750cc045d8d1fabe35b17e91 (diff)
downloadsubsurface-3561d347457fa99fbe6a1f46e7e14a39d313f6be.tar.gz
Current dive site has nothing to do with enableEdition
It will be set later. 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.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index 06475aae0..3655d4dc3 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -156,10 +156,6 @@ void LocationInformationWidget::enableEdition()
MainWindow::instance()->dive_list()->setEnabled(false);
MainWindow::instance()->setEnabledToolbar(false);
ui.diveSiteMessage->setText(tr("You are editing a dive site"));
- if (!currentDs) {
- displayed_dive.dive_site_uuid = create_dive_site(NULL);
- currentDs = get_dive_site_by_uuid(displayed_dive.dive_site_uuid);
- }
}
extern bool parseGpsText(const QString &gps_text, double *latitude, double *longitude);