Commit 2f205246 authored by Don Gagne's avatar Don Gagne

Merge pull request #2617 from DonLakeFlyer/ParamCombo

Param Edit: Combo box showing incorrect value
parents 14b8d64e 7dc069c8
......@@ -100,13 +100,15 @@ QGCViewDialog {
QGCComboBox {
id: factCombo
width: valueField.width
visible: fact.enumStrings.length != 0 && !validate
visible: _showCombo
model: fact.enumStrings
property bool _showCombo: fact.enumStrings.length != 0 && !validate
Component.onCompleted: {
// We can't bind directly to fact.enumIndex since that would add an unknown value
// if there are no enum strings.
if (visible) {
if (_showCombo) {
currentIndex = fact.enumIndex
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment