CURA-5327 fix crash when changing material diameter

This commit is contained in:
Jack Ha 2018-06-11 17:00:43 +02:00
parent b3f6e5c9e0
commit 89c84eb93b

View file

@ -158,4 +158,4 @@ class MachineSettingsAction(MachineAction):
@pyqtSlot(int)
def updateMaterialForDiameter(self, extruder_position: int):
# Updates the material container to a material that matches the material diameter set for the printer
self._application.getMachineManager().updateMaterialWithVariant(extruder_position)
self._application.getMachineManager().updateMaterialWithVariant(str(extruder_position))