From 603f18ebc95fca0751089016965be38dd5b92508 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 12 Sep 2019 16:44:40 +0200 Subject: [PATCH] No need to sort quality groups by type alphabetically Like, it would put 'draft' first and 'verydraft' last. Just makes no sense. They have unique layer heights already. Contributes to issue CURA-6600. --- cura/Machines/MaterialManager.py | 2 +- cura/Machines/Models/QualityProfilesDropDownMenuModel.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/Machines/MaterialManager.py b/cura/Machines/MaterialManager.py index 3201f4cc25..95e5f9e8bf 100644 --- a/cura/Machines/MaterialManager.py +++ b/cura/Machines/MaterialManager.py @@ -198,7 +198,7 @@ class MaterialManager(QObject): return results # - # Used by QualityManager. Built-in quality profiles may be based on generic material IDs such as "generic_pla". + # Built-in quality profiles may be based on generic material IDs such as "generic_pla". # For materials such as ultimaker_pla_orange, no quality profiles may be found, so we should fall back to use # the generic material IDs to search for qualities. # diff --git a/cura/Machines/Models/QualityProfilesDropDownMenuModel.py b/cura/Machines/Models/QualityProfilesDropDownMenuModel.py index 96a4ee0648..2f761bbae7 100644 --- a/cura/Machines/Models/QualityProfilesDropDownMenuModel.py +++ b/cura/Machines/Models/QualityProfilesDropDownMenuModel.py @@ -77,7 +77,7 @@ class QualityProfilesDropDownMenuModel(ListModel): quality_group_dict = ContainerTree.getInstance().getCurrentQualityGroups() item_list = [] - for key in sorted(quality_group_dict): + for key in quality_group_dict: quality_group = quality_group_dict[key] layer_height = self._fetchLayerHeight(quality_group)