From 1e4d79db263bb166b7fc703bd8da0e63bf8d9613 Mon Sep 17 00:00:00 2001 From: Sam Gillam Date: Fri, 25 Oct 2024 12:39:12 -0600 Subject: [PATCH] Fix console warnings shown when adding complex land mission item 1. Remove references to non existent useLoiterToAlt.visible property 2. Don't add _mouseArea to the map (the action was failing and isn't necessary) --- src/PlanView/FWLandingPatternEditor.qml | 1 - src/PlanView/FWLandingPatternMapVisual.qml | 1 - src/PlanView/VTOLLandingPatternEditor.qml | 1 - src/PlanView/VTOLLandingPatternMapVisual.qml | 1 - 4 files changed, 4 deletions(-) diff --git a/src/PlanView/FWLandingPatternEditor.qml b/src/PlanView/FWLandingPatternEditor.qml index be1d8d1896d..cbdbdcb2e54 100644 --- a/src/PlanView/FWLandingPatternEditor.qml +++ b/src/PlanView/FWLandingPatternEditor.qml @@ -69,7 +69,6 @@ Rectangle { FactCheckBox { text: qsTr("Use loiter to altitude") fact: missionItem.useLoiterToAlt - visible: missionItem.useLoiterToAlt.visible } GridLayout { diff --git a/src/PlanView/FWLandingPatternMapVisual.qml b/src/PlanView/FWLandingPatternMapVisual.qml index 06b66e675c6..e76fc0aa2c1 100644 --- a/src/PlanView/FWLandingPatternMapVisual.qml +++ b/src/PlanView/FWLandingPatternMapVisual.qml @@ -86,7 +86,6 @@ Item { function showMouseArea() { if (!_mouseArea) { _mouseArea = mouseAreaComponent.createObject(map) - map.addMapItem(_mouseArea) } } diff --git a/src/PlanView/VTOLLandingPatternEditor.qml b/src/PlanView/VTOLLandingPatternEditor.qml index 80b54f9ccac..65a3c7d87e2 100644 --- a/src/PlanView/VTOLLandingPatternEditor.qml +++ b/src/PlanView/VTOLLandingPatternEditor.qml @@ -69,7 +69,6 @@ Rectangle { FactCheckBox { text: qsTr("Use loiter to altitude") fact: missionItem.useLoiterToAlt - visible: missionItem.useLoiterToAlt.visible } GridLayout { diff --git a/src/PlanView/VTOLLandingPatternMapVisual.qml b/src/PlanView/VTOLLandingPatternMapVisual.qml index 5fbb8363416..b867381f739 100644 --- a/src/PlanView/VTOLLandingPatternMapVisual.qml +++ b/src/PlanView/VTOLLandingPatternMapVisual.qml @@ -62,7 +62,6 @@ Item { function showMouseArea() { if (!_mouseArea) { _mouseArea = mouseAreaComponent.createObject(map) - map.addMapItem(_mouseArea) } }