From b861154299744f4bee63352ac85db5d44971b846 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Thu, 24 Nov 2016 14:34:56 -0800 Subject: [PATCH] Fix combo selection bug --- src/AutoPilotPlugins/PX4/AirframeComponent.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AutoPilotPlugins/PX4/AirframeComponent.qml b/src/AutoPilotPlugins/PX4/AirframeComponent.qml index 048b045df..13a3f3b8f 100644 --- a/src/AutoPilotPlugins/PX4/AirframeComponent.qml +++ b/src/AutoPilotPlugins/PX4/AirframeComponent.qml @@ -208,6 +208,7 @@ Your vehicle will also be restarted in order to complete the process.") onCheckedChanged: { if (checked && combo.currentIndex != -1) { + console.log("check box change", combo.currentIndex) controller.autostartId = modelData.airframes[combo.currentIndex].autostartId } } @@ -230,8 +231,9 @@ Your vehicle will also be restarted in order to complete the process.") onActivated: { applyButton.primary = true - controller.autostartId = modelData.airframes[index].autostartId airframeCheckBox.checked = true; + console.log("combo change", index) + controller.autostartId = modelData.airframes[index].autostartId } } } -- 2.22.0