mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
New field are stripped
Otherwise, you can rename "Back" to " Front" and then get unexpected result
This commit is contained in:
parent
e2be0c2cbd
commit
ae489b1278
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ class FieldDialog(QDialog):
|
|||
self.loadField(idx)
|
||||
|
||||
def _uniqueName(self, prompt, ignoreOrd=None, old=""):
|
||||
txt = getOnlyText(prompt, default=old).replace('"', "")
|
||||
txt = getOnlyText(prompt, default=old).replace('"', "").strip()
|
||||
if not txt:
|
||||
return
|
||||
for f in self.model["flds"]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue