No longer crash when trying to get non existing extruder stacks

CURA-3953
This commit is contained in:
Jaime van Kessel 2017-06-26 13:16:14 +02:00
parent 572852d2d6
commit 7813bfc543

View file

@ -78,6 +78,7 @@ class ExtruderManager(QObject):
def extruderIds(self):
map = {}
global_stack_id = Application.getInstance().getGlobalContainerStack().getId()
if global_stack_id in self._extruder_trains:
for position in self._extruder_trains[global_stack_id]:
map[position] = self._extruder_trains[global_stack_id][position].getId()
return map