From 3561d347457fa99fbe6a1f46e7e14a39d313f6be Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 4 Jun 2015 00:19:47 -0300 Subject: [PATCH] Current dive site has nothing to do with enableEdition It will be set later. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 4 ---- 1 file changed, 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);