Merge pull request #851 from hgiesel/cardtypeprobs

Remove unicode isolation from card type names
This commit is contained in:
Damien Elmes 2020-12-16 13:37:44 +10:00 committed by GitHub
commit 24e69e3803
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -630,7 +630,7 @@ class CardLayout(QDialog):
def _newCardName(self): def _newCardName(self):
n = len(self.templates) + 1 n = len(self.templates) + 1
while 1: while 1:
name = tr(TR.CARD_TEMPLATES_CARD, val=n) name = without_unicode_isolation(tr(TR.CARD_TEMPLATES_CARD, val=n))
if name not in [t["name"] for t in self.templates]: if name not in [t["name"] for t in self.templates]:
break break
n += 1 n += 1