Call the method correctly through the instance.

Contributes to CURA-1667 Profile import/export
This commit is contained in:
Simon Edwards 2016-06-15 13:40:41 +02:00
parent 70b2311c59
commit 92569d63e9

View File

@ -171,7 +171,7 @@ class MachineManagerModel(QObject):
# \param fallback_name \type{string} Name to use when (stripped) new_name is empty
# \return \type{string} Name that is unique for the specified type and name/id
def _createUniqueName(self, container_type, current_name, new_name, fallback_name):
return UM.Settings.ContainerRegistry.createUniqueName(container_type, current_name, new_name, fallback_name)
return UM.Settings.ContainerRegistry.getInstance().createUniqueName(container_type, current_name, new_name, fallback_name)
## Convenience function to check if a stack has errors.
def _checkStackForErrors(self, stack):