A small fix for the case when Cura is starting up and there is no printer.

CURA-2271 Warn for unsupported material/printcore combinations
This commit is contained in:
Simon Edwards 2016-10-13 11:10:40 +02:00
parent f659d01da1
commit f7fe59c707
2 changed files with 6 additions and 4 deletions

View file

@ -32,8 +32,9 @@ class ProfilesModel(InstanceContainersModel):
extruder_manager = ExtruderManager.getInstance()
active_extruder = extruder_manager.getActiveExtruderStack()
extruder_stacks = extruder_manager.getActiveExtruderStacks()
extruder_stacks.remove(active_extruder)
extruder_stacks = [active_extruder] + extruder_stacks
if active_extruder in extruder_stacks:
extruder_stacks.remove(active_extruder)
extruder_stacks = [active_extruder] + extruder_stacks
# Fetch the list of useable qualities across all extruders.
# The actual list of quality profiles come from the first extruder in the extruder list.