Fixes #2116864 [Save Preferences Naming Error](https://bugs.launchpad.net/calibre/+bug/2116864)
This commit is contained in:
Kovid Goyal 2025-07-14 17:15:23 +05:30
commit 4515dfbc85
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -91,7 +91,7 @@ class SaveTemplate(QWidget, Ui_Form):
return True
try:
t = validation_formatter.validate(tmpl)
if t.find(validation_formatter._validation_string) < 0:
if not t:
return question_dialog(self, _('Constant template'),
_('The template contains no {fields}, so all '
'books will have the same name. Is this OK?'))