Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Prado Gesto <d.pradogesto@ultimaker.com>2017-09-22 12:20:57 +0300
committerDiego Prado Gesto <d.pradogesto@ultimaker.com>2017-09-22 12:20:57 +0300
commit37da9f654bde6cf92548a6b18b9b4f5be3d0206c (patch)
treea886fe3c8dfa0e2a23ab0db468893ec0478d66f2 /cura/Settings
parent879b3df816a88373f64d85cd9b01fba64f0cac7b (diff)
Reverted changes done that makes sliders fail - CURA-4327
Diffstat (limited to 'cura/Settings')
-rw-r--r--cura/Settings/ProfilesModel.py19
1 files changed, 4 insertions, 15 deletions
diff --git a/cura/Settings/ProfilesModel.py b/cura/Settings/ProfilesModel.py
index e39ed949b0..b6ef1fdcef 100644
--- a/cura/Settings/ProfilesModel.py
+++ b/cura/Settings/ProfilesModel.py
@@ -126,25 +126,14 @@ class ProfilesModel(InstanceContainersModel):
for key in reversed(tmp_all_quality_items.keys()):
all_quality_items[key] = tmp_all_quality_items[key]
- # First the suitable containers are set in the model
- containers = []
for data_item in all_quality_items.values():
- suitable_item = data_item["suitable_container"]
- if suitable_item is None:
- suitable_item = data_item["all_containers"][0]
- containers.append(suitable_item)
+ item = data_item["suitable_container"]
+ if item is None:
+ item = data_item["all_containers"][0]
- # Once the suitable containers are collected, the rest of the containers are appended
- for data_item in all_quality_items.values():
- for item in data_item["all_containers"]:
- if item not in containers:
- containers.append(item)
-
- # Now all the containers are set
- for item in containers:
profile = container_registry.findContainers(id = item["id"])
if not profile:
- item["layer_height"] = "" #Can't update a profile that is unknown.
+ item["layer_height"] = "" # Can't update a profile that is unknown.
item["available"] = False
yield item
continue