Fix removing of material

CURA-6600
This commit is contained in:
Jaime van Kessel 2019-08-19 13:01:05 +02:00
parent 49e8c8d9d9
commit 646222f2ac
5 changed files with 11 additions and 11 deletions

View file

@ -28,7 +28,8 @@ class FavoriteMaterialsModel(BaseMaterialsModel):
continue
item = self._createMaterialItem(root_material_id, container_node)
item_list.append(item)
if item:
item_list.append(item)
# Sort the item list alphabetically by name
item_list = sorted(item_list, key = lambda d: d["brand"].upper())