summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/mainwindow.cpp4
-rw-r--r--desktop-widgets/mapwidget.cpp5
-rw-r--r--desktop-widgets/mapwidget.h1
3 files changed, 10 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);
diff --git a/desktop-widgets/mapwidget.cpp b/desktop-widgets/mapwidget.cpp
index 315fd3336..8753e1d98 100644
--- a/desktop-widgets/mapwidget.cpp
+++ b/desktop-widgets/mapwidget.cpp
@@ -32,6 +32,11 @@ void MapWidget::reload()
// TODO;
}
+void MapWidget::endGetDiveCoordinates()
+{
+ // TODO;
+}
+
MapWidget::~MapWidget()
{
m_instance = NULL;
diff --git a/desktop-widgets/mapwidget.h b/desktop-widgets/mapwidget.h
index 3141060a1..7a372f6ae 100644
--- a/desktop-widgets/mapwidget.h
+++ b/desktop-widgets/mapwidget.h
@@ -22,6 +22,7 @@ public:
public slots:
void centerOnDiveSite(struct dive_site *);
+ void endGetDiveCoordinates();
private:
static MapWidget *m_instance;