mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Detect templates that return a constant string in save to disk/send to device.
This commit is contained in:
parent
6d3af52614
commit
54b4076778
@ -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?'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user