mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-03 12:03:57 -06:00
parent
a0bbf98fba
commit
5235f74adf
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ class MachineManagerModel(QObject):
|
||||||
# Create a name that is not empty and unique
|
# Create a name that is not empty and unique
|
||||||
def _createUniqueName(self, object_type, name, fallback_name):
|
def _createUniqueName(self, object_type, name, fallback_name):
|
||||||
name = name.strip()
|
name = name.strip()
|
||||||
num_check = re.compile("(.*?)\s*#\d$").match(name)
|
num_check = re.compile("(.*?)\s*#\d+$").match(name)
|
||||||
if(num_check):
|
if(num_check):
|
||||||
name = num_check.group(1)
|
name = num_check.group(1)
|
||||||
if name == "":
|
if name == "":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue