mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-25 02:24:26 +08:00
Fix error about casting undefined to QString
This commit is contained in:
parent
35a3bdc924
commit
189e3e30d9
@ -21,7 +21,11 @@ SettingItem
|
||||
id: extruders_model
|
||||
onModelChanged: control.color = extruders_model.getItem(control.currentIndex).color
|
||||
}
|
||||
property string color: extruders_model.getItem(control.currentIndex).color
|
||||
property string color:
|
||||
{
|
||||
var model_color = extruders_model.getItem(control.currentIndex).color;
|
||||
return (model_color) ? model_color : "";
|
||||
}
|
||||
|
||||
textRole: "name"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user