New field are stripped
Otherwise, you can rename "Back" to " Front" and then get unexpected result
This commit is contained in:
parent
14c0066a53
commit
3be90c444d
@ -82,7 +82,7 @@ class FieldDialog(QDialog):
|
|||||||
self.loadField(idx)
|
self.loadField(idx)
|
||||||
|
|
||||||
def _uniqueName(self, prompt, ignoreOrd=None, old=""):
|
def _uniqueName(self, prompt, ignoreOrd=None, old=""):
|
||||||
txt = getOnlyText(prompt, default=old).replace('"', "")
|
txt = getOnlyText(prompt, default=old).replace('"', "").strip()
|
||||||
if not txt:
|
if not txt:
|
||||||
return
|
return
|
||||||
for f in self.model["flds"]:
|
for f in self.model["flds"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user