Rename parameter in _uniqueName

Original means the original name. That's better.

Contributes to issues CURA-1278 and CURA-340.
This commit is contained in:
Ghostkeeper 2016-06-07 11:34:00 +02:00
parent 890303da14
commit 9fe5435963
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -177,10 +177,10 @@ class ExtruderManager(QObject):
container_registry.addContainer(container_stack)
def _uniqueName(self, extruder):
def _uniqueName(self, original):
container_registry = UM.Settings.ContainerRegistry.getInstance()
name = extruder.strip()
name = original.strip()
num_check = re.compile("(.*?)\s*#\d$").match(name)
if num_check: # There is a number in the name.
name = num_check.group(1) # Filter out the number.