Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
7dc069c8
Commit
7dc069c8
authored
Jan 14, 2016
by
Don Gagne
Browse files
Combo box showing incorrect value
parent
f9874376
Changes
1
Show whitespace changes
Inline
Side-by-side
src/QmlControls/ParameterEditorDialog.qml
View file @
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
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment