Commit df4a28dd authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.PropertyEdior: Fixing ComboBox

If there is no enum value fall back to the instanced value.

Change-Id: Idd4654d6e9fb8d4afd3df0855861511bc06454c1
Reviewed-by: default avatarAlessandro Portale <>
parent af906188
......@@ -43,7 +43,10 @@ Controls.ComboBox {
id: colorLogic
backendValue: comboBox.backendValue
onValueFromBackendChanged: {
comboBox.currentIndex = comboBox.find(comboBox.backendValue.enumeration);
var enumString = comboBox.backendValue.enumeration;
if (enumString === "")
enumString = comboBox.backendValue.value
comboBox.currentIndex = comboBox.find(enumString);
Supports Markdown
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