Fix QML errors when extruder list is temporarily 0

Found during work on CURA-6793.
This commit is contained in:
Ghostkeeper 2019-10-10 16:02:13 +02:00
parent ab4fade017
commit d3a3be832f
No known key found for this signature in database
GPG Key ID: 86BEF881AE2CF276

View File

@ -13,8 +13,8 @@ Menu
title: catalog.i18nc("@label:category menu label", "Material")
property int extruderIndex: 0
property string currentRootMaterialId: Cura.MachineManager.currentRootMaterialId[extruderIndex]
property string activeMaterialId: Cura.MachineManager.activeMachine.extruderList[extruderIndex].material.id
property var currentRootMaterialId: Cura.MachineManager.currentRootMaterialId[extruderIndex]
property string activeMaterialId: Cura.MachineManager.activeMachine.extruderList[extruderIndex] ? Cura.MachineManager.activeMachine.extruderList[extruderIndex].material.id : ""
property bool updateModels: true
Cura.FavoriteMaterialsModel
{