Bug #2116864: Save Preferences Naming Error. This affects Preferences / Send to device

This commit is contained in:
Charles Haley 2025-07-14 12:40:29 +01:00
parent 46acd9f1a2
commit 8f97765868

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 t.find(validation_formatter._validation_string) < 0: if not t:
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?'))