mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Fix QML warning assigning undefined to an integer field
Fixes the following QML warning in the logs: 2020-03-20 14:02:13,482 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [406]: file:///home/trin/Gedeeld/Projects/Cura/resources/qml/PrintSetupSelector/Recommended/RecommendedSupportSelector.qml:125:13: Unable to assign [undefined] to int Instead it now assigns the first extruder before a printer has been created. The first extruder also doesn't exist yet at this point, but this doesn't really matter because there is no interface to show yet at this point. Done during Turbo Testing and Tooling.
This commit is contained in:
parent
c44f82c44f
commit
3af91bfca7
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ Item
|
|||
}
|
||||
}
|
||||
|
||||
currentIndex: supportExtruderNr.properties.value
|
||||
currentIndex: (supportExtruderNr.properties.value !== undefined) ? supportExtruderNr.properties.value : 0
|
||||
|
||||
property string color: "#fff"
|
||||
Connections
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue