From dbb0269354c345f9415f98ee9c3d2f0a2a7b4df5 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Thu, 2 Nov 2023 19:46:06 +0100 Subject: [PATCH] Fix sending locations --- src/qml/LocationChooser.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qml/LocationChooser.qml b/src/qml/LocationChooser.qml index 581dd783a..ea46b1776 100644 --- a/src/qml/LocationChooser.qml +++ b/src/qml/LocationChooser.qml @@ -34,7 +34,7 @@ Components.AbstractMaximizeComponent { ] content: MapView { - id: map + id: mapView map.plugin: Plugin { name: "osm" PluginParameter { @@ -50,7 +50,7 @@ Components.AbstractMaximizeComponent { MouseArea { anchors.fill: parent onClicked: { - root.location = map.toCoordinate(Qt.point(mouseX, mouseY), false) + root.location = mapView.map.toCoordinate(Qt.point(mouseX, mouseY), false) } }