diff options
-rw-r--r-- | map-widget/qmlmapwidgethelper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/map-widget/qmlmapwidgethelper.cpp b/map-widget/qmlmapwidgethelper.cpp index 16f57c317..e900debf1 100644 --- a/map-widget/qmlmapwidgethelper.cpp +++ b/map-widget/qmlmapwidgethelper.cpp @@ -226,6 +226,7 @@ void MapWidgetHelper::updateCurrentDiveSiteCoordinatesToMap() const qreal longitude = displayed_dive_site.longitude.udeg * 0.000001; QGeoCoordinate coord(latitude, longitude); m_mapLocationModel->updateMapLocationCoordinates(displayed_dive_site.uuid, coord); + QMetaObject::invokeMethod(m_map, "centerOnCoordinate", Q_ARG(QVariant, QVariant::fromValue(coord))); } bool MapWidgetHelper::editMode() |