From 8f9776586839e53fc75ac065749b5a4ff60d38a1 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Mon, 14 Jul 2025 12:40:29 +0100 Subject: [PATCH] Bug #2116864: Save Preferences Naming Error. This affects Preferences / Send to device --- src/calibre/gui2/preferences/save_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?'))