mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 22:23:57 -06:00
Stop logging spam by checking before setting property.
CURA-9793
This commit is contained in:
parent
1224f076c3
commit
f99f1a4528
1 changed files with 7 additions and 1 deletions
|
@ -58,5 +58,11 @@ Cura.ComboBox {
|
|||
function onIsValueUsedChanged() { comboboxModel.updateModel() }
|
||||
}
|
||||
|
||||
onCurrentIndexChanged: propertyProvider.setPropertyValue("value", comboboxModel.get(currentIndex).code)
|
||||
onCurrentIndexChanged:
|
||||
{
|
||||
if (comboboxModel.get(currentIndex) && comboboxModel.get(currentIndex).code)
|
||||
{
|
||||
propertyProvider.setPropertyValue("value", comboboxModel.get(currentIndex).code)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue