Commit 65e878e5 authored by DonLakeFlyer's avatar DonLakeFlyer

Prevent binding error

parent b49760af
......@@ -138,7 +138,9 @@ QGCViewDialog {
}
onCurrentIndexChanged: {
valueField.text = fact.enumValues[currentIndex]
if (currentIndex >=0 && currentIndex < model.length) {
valueField.text = fact.enumValues[currentIndex]
}
}
}
......
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