This commit is contained in:
Kovid Goyal 2025-07-18 07:44:47 +05:30
commit ba8a673047
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 return True
try: try:
t = validation_formatter.validate(tmpl) t = validation_formatter.validate(tmpl)
if not t: if not t or t == tmpl:
return question_dialog(self, _('Constant template'), return question_dialog(self, _('Constant template'),
_('The template contains no {fields}, so all ' _('The template contains no {fields}, so all '
'books will have the same name. Is this OK?')) 'books will have the same name. Is this OK?'))