New field are stripped

Otherwise, you can rename "Back" to " Front" and then get unexpected result
This commit is contained in:
Arthur Milchior 2020-12-27 08:29:31 +01:00
parent 14c0066a53
commit 3be90c444d

View File

@ -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"]: