mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 05:37:50 -06:00
Fix error about casting undefined to QString
This commit is contained in:
parent
35a3bdc924
commit
189e3e30d9
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,11 @@ SettingItem
|
||||||
id: extruders_model
|
id: extruders_model
|
||||||
onModelChanged: control.color = extruders_model.getItem(control.currentIndex).color
|
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"
|
textRole: "name"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue