Browse Source

Merge pull request #4247 from DonLakeFlyer/AirframeSelect

Fix combo selection bug
QGC4.4
Don Gagne 9 years ago committed by GitHub
parent
commit
4820ec606e
  1. 4
      src/AutoPilotPlugins/PX4/AirframeComponent.qml

4
src/AutoPilotPlugins/PX4/AirframeComponent.qml

@ -208,6 +208,7 @@ Your vehicle will also be restarted in order to complete the process.") @@ -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.") @@ -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
}
}
}

Loading…
Cancel
Save