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>
This commit is contained in:
Tomaz Canabrava 2015-06-04 00:19:47 -03:00 committed by Dirk Hohndel
parent 9c34f196fa
commit 3561d34745

View file

@ -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);