aboutsummaryrefslogtreecommitdiffstats
path: root/map-widget
diff options
context:
space:
mode:
Diffstat (limited to 'map-widget')
-rw-r--r--map-widget/qmlmapwidgethelper.cpp4
-rw-r--r--map-widget/qmlmapwidgethelper.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/map-widget/qmlmapwidgethelper.cpp b/map-widget/qmlmapwidgethelper.cpp
index b13c047e7..a0062db6b 100644
--- a/map-widget/qmlmapwidgethelper.cpp
+++ b/map-widget/qmlmapwidgethelper.cpp
@@ -257,7 +257,7 @@ void MapWidgetHelper::updateCurrentDiveSiteCoordinatesFromMap(struct dive_site *
if (loc)
loc->setCoordinate(coord);
location_t location = mk_location(coord);
- emit coordinatesChanged(location);
+ emit coordinatesChanged(ds, location);
}
void MapWidgetHelper::updateDiveSiteCoordinates(struct dive_site *ds, const location_t &location)
@@ -294,8 +294,6 @@ void MapWidgetHelper::enterEditMode(struct dive_site *ds)
coord = exists->coordinate();
}
centerOnDiveSite(ds);
- location_t location = mk_location(coord);
- emit coordinatesChanged(location);
emit editModeChanged();
}
diff --git a/map-widget/qmlmapwidgethelper.h b/map-widget/qmlmapwidgethelper.h
index 43f722aba..2ea4959d6 100644
--- a/map-widget/qmlmapwidgethelper.h
+++ b/map-widget/qmlmapwidgethelper.h
@@ -53,7 +53,7 @@ signals:
void modelChanged();
void editModeChanged();
void selectedDivesChanged(QList<int> list);
- void coordinatesChanged(const location_t &);
+ void coordinatesChanged(struct dive_site *ds, const location_t &);
void pluginObjectChanged();
};