Rename reject even when another deck has same name different cases
This commit is contained in:
parent
769d52d6b2
commit
6aacd7782f
@ -257,7 +257,7 @@ class DeckManager:
|
||||
def rename(self, g, newName):
|
||||
"Rename deck prefix to NAME if not exists. Updates children."
|
||||
# make sure target node doesn't already exist
|
||||
if newName in self.allNames():
|
||||
if self.byName(newName):
|
||||
raise DeckRenameError(_("That deck already exists."))
|
||||
# make sure we're not nesting under a filtered deck
|
||||
for p in self.parentsByName(newName):
|
||||
|
Loading…
Reference in New Issue
Block a user