Skip to content

Commit

Permalink
Fix combo init
Browse files Browse the repository at this point in the history
  • Loading branch information
DonLakeFlyer committed Sep 23, 2024
1 parent a1ca9ce commit 0545835
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/QmlControls/InstrumentValueEditDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ QGCPopupDialog {
heading: qsTr("Telemetry")

LabelledComboBox {
id: factGroupCombo
label: qsTr("Group")
model: instrumentValueData.factGroupNames
currentIndex: comboBox.find(instrumentValueData.factGroupName)
id: factGroupCombo
label: qsTr("Group")
model: instrumentValueData.factGroupNames
Component.onCompleted: currentIndex = comboBox.find(instrumentValueData.factGroupName)
onActivated: (index) => {
instrumentValueData.setFact(currentText, "")
instrumentValueData.icon = ""
Expand All @@ -74,7 +74,7 @@ QGCPopupDialog {
id: factNamesCombo
label: qsTr("Value")
model: instrumentValueData.factValueNames
currentIndex: comboBox.find(instrumentValueData.factName)
Component.onCompleted: currentIndex = comboBox.find(instrumentValueData.factName)
onActivated: (index) => {
instrumentValueData.setFact(instrumentValueData.factGroupName, currentText)
instrumentValueData.icon = ""
Expand Down

0 comments on commit 0545835

Please sign in to comment.