Detect templates that return a constant string in save to disk/send to device.

This commit is contained in:
Charles Haley 2025-07-17 18:53:13 +01:00
parent 6d3af52614
commit 54b4076778

View File

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