mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #1474513: exception in template editor in send-to-device preferences when using {id}
This commit is contained in:
parent
6be8b7ce7c
commit
3160e35433
@ -274,6 +274,7 @@ class TemplateDialog(QDialog, Ui_TemplateDialog):
|
||||
self.mi.rating = 4.0
|
||||
self.mi.tags = [_('Tag 1'), _('Tag 2')]
|
||||
self.mi.languages = ['eng']
|
||||
self.mi.id = 1
|
||||
if fm is not None:
|
||||
self.mi.set_all_user_metadata(fm.custom_field_metadata())
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user