diff --git a/src/calibre/gui2/preferences/save_template.py b/src/calibre/gui2/preferences/save_template.py index cb6d2195a4..661a6c5a1f 100644 --- a/src/calibre/gui2/preferences/save_template.py +++ b/src/calibre/gui2/preferences/save_template.py @@ -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?'))