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
path: root/cura
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2016-10-16 15:20:04 +0300
committerJaime van Kessel <nallath@gmail.com>2016-10-16 15:20:04 +0300
commit95f2b84fb5e306fabaadf17723c651b30aaa4e97 (patch)
treed7ab5cdf9189e30a5e274492dbc4eef231a4f50a /cura
parent3afd813e5ec53a21e0f1b7934859796d9382ac94 (diff)
Fixed importing profiles for machines with inheritance
Diffstat (limited to 'cura')
-rw-r--r--cura/Settings/CuraContainerRegistry.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cura/Settings/CuraContainerRegistry.py b/cura/Settings/CuraContainerRegistry.py
index fd3f529351..86fc5335be 100644
--- a/cura/Settings/CuraContainerRegistry.py
+++ b/cura/Settings/CuraContainerRegistry.py
@@ -142,6 +142,7 @@ class CuraContainerRegistry(ContainerRegistry):
# \return \type{Dict} dict with a 'status' key containing the string 'ok' or 'error', and a 'message' key
# containing a message for the user
def importProfile(self, file_name):
+ Logger.log("d", "Attempting to import profile %s", file_name)
if not file_name:
return { "status": "error", "message": catalog.i18nc("@info:status", "Failed to import profile from <filename>{0}</filename>: <message>{1}</message>", file_name, "Invalid path")}
@@ -181,7 +182,7 @@ class CuraContainerRegistry(ContainerRegistry):
for profile in profile_or_list:
if profile_index >= 0:
if len(machine_extruders) > profile_index:
- extruder_id = machine_extruders[profile_index].getBottom().getId()
+ extruder_id = Application.getInstance().getMachineManager().getQualityDefinitionId(machine_extruders[profile_index].getBottom())
# Ensure the extruder profiles get non-conflicting names
# NB: these are not user-facing
if "extruder" in profile.getMetaData():