summaryrefslogtreecommitdiffstats
path: root/map-widget/qmlmapwidgethelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'map-widget/qmlmapwidgethelper.cpp')
-rw-r--r--map-widget/qmlmapwidgethelper.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/map-widget/qmlmapwidgethelper.cpp b/map-widget/qmlmapwidgethelper.cpp
index 26590269a..6046d08cc 100644
--- a/map-widget/qmlmapwidgethelper.cpp
+++ b/map-widget/qmlmapwidgethelper.cpp
@@ -23,6 +23,14 @@ MapWidgetHelper::MapWidgetHelper(QObject *parent) : QObject(parent)
this, SLOT(selectedLocationChanged(MapLocation *)));
}
+void MapWidgetHelper::centerOnDiveSiteUUID(QVariant dive_site_uuid)
+{
+ const uint32_t uuid = qvariant_cast<uint32_t>(dive_site_uuid);
+ struct dive_site *ds = get_dive_site_by_uuid(uuid);
+ if (ds)
+ centerOnDiveSite(ds);
+}
+
void MapWidgetHelper::centerOnDiveSite(struct dive_site *ds)
{
int idx;