Commit b59aefbc authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.PropertyEditor: Fix UrlChooser

Change-Id: I1bfc3eb63185f188e7d896f98a635b0b81b94d89
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 6c5de685
......@@ -61,13 +61,17 @@ RowLayout {
Controls.ComboBox {
id: comboBox
property bool isComplete: false
property string textValue: backendValue.value
onTextValueChanged: {
comboBox.editText = textValue
}
Layout.fillWidth: true
id: comboBox
editable: true
style: CustomComboBoxStyle {
textColor: urlChooser.textColor
......@@ -76,6 +80,9 @@ RowLayout {
model: fileModel.fileModel
onModelChanged: {
if (!comboBox.isComplete)
return;
editText = backendValue.valueToString
}
......@@ -83,6 +90,9 @@ RowLayout {
if (backendValue === undefined)
return;
if (!comboBox.isComplete)
return;
if (backendValue.value !== currentText)
backendValue.value = currentText;
}
......@@ -96,6 +106,8 @@ RowLayout {
comboBox.children[i].anchors.rightMargin = 34
}
}
comboBox.isComplete = true
editText = backendValue.valueToString
}
}
......
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