From fa2a2ae60c17f0325dc1e6105a093e1e6c967680 Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Tue, 15 Aug 2017 15:50:00 -0700 Subject: [PATCH] Fix object creation --- src/FlightMap/MapItems/CustomMapItems.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FlightMap/MapItems/CustomMapItems.qml b/src/FlightMap/MapItems/CustomMapItems.qml index 1c00c1e00..11509da59 100644 --- a/src/FlightMap/MapItems/CustomMapItems.qml +++ b/src/FlightMap/MapItems/CustomMapItems.qml @@ -32,7 +32,7 @@ Item { if (controlUrl != "") { var component = Qt.createComponent(controlUrl); if (component.status == Component.Ready) { - _customObject = _customComponent.createObject(map, { "vehicle": vehicle }); + _customObject = component.createObject(map, { "customMapObject": object }) if (_customObject) { map.addMapItem(_customObject) } -- 2.22.0