From 9f9a34ea90d8a6764021dc5afc385204ebe98fd2 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 14 Aug 2016 23:36:06 +0200 Subject: [PATCH] Guard against param not existing --- src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml b/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml index 93094d4d8..e99467242 100644 --- a/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml +++ b/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml @@ -198,7 +198,7 @@ Item { spacing: ScreenTools.defaultFontPixelWidth property Fact fact: controller.getParameterFact(-1, "RC_MAP_TRANS_SW") - visible: (controller.vehicle.vtol) + visible: (controller.vehicle.vtol && controller.parameterExists(-1, "RC_MAP_TRANS_SW")) QGCLabel { anchors.baseline: vtolCombo.baseline -- 2.22.0