Commit f1120762 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.ComboBox: Minor fix

If we cannot read the index we set the index to 0.

Change-Id: Id990ca1640f9314931af9249c798c8b51ea5c0bb
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent 7d5d5fa3
......@@ -66,8 +66,11 @@ Controls.ComboBox {
var index = comboBox.find(enumString)
if (index < 0)
index = 0
if (index !== comboBox.currentIndex)
comboBox.currentIndex = comboBox.find(enumString)
comboBox.currentIndex = index
} else {
if (comboBox.currentIndex !== backendValue.value)
......
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