aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-15 23:13:54 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commit0d3d9c01ebfa2476b9568b425de3edc3a9f0a730 (patch)
tree6ae63244f4ae8677d559584b47c4e0324c1cdc55 /desktop-widgets/mainwindow.cpp
parent39af5bb05ba551cc9591939e5d516932e9d8e250 (diff)
downloadsubsurface-0d3d9c01ebfa2476b9568b425de3edc3a9f0a730.tar.gz
mapwidget: add public slot endGetDiveCoordinates()
Later this has to be replaced / renamed if needed. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 5e3f6abe3..448a24d28 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -1032,7 +1032,11 @@ void MainWindow::on_actionEditDive_triggered()
disableShortcuts();
DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::ADD);
graphics()->setAddState();
+#ifndef NO_MARBLE
GlobeGPS::instance()->endGetDiveCoordinates();
+#else
+ MapWidget::instance()->endGetDiveCoordinates();
+#endif
setApplicationState("EditDive");
DivePlannerPointsModel::instance()->loadFromDive(current_dive);
information()->enableEdition(MainTab::MANUALLY_ADDED_DIVE);