From efdc929d90cd4d51e2b70383978776a8e2895e75 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Mon, 16 Oct 2017 11:43:05 +0200 Subject: [PATCH] Add invoking the template editor to the context menu of the bulk S/R template box --- src/calibre/gui2/dialogs/metadata_bulk.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/dialogs/metadata_bulk.py b/src/calibre/gui2/dialogs/metadata_bulk.py index 0a4253c8f8..c25962bb30 100644 --- a/src/calibre/gui2/dialogs/metadata_bulk.py +++ b/src/calibre/gui2/dialogs/metadata_bulk.py @@ -17,6 +17,7 @@ from calibre.ebooks.metadata.opf2 import OPF from calibre.constants import DEBUG from calibre.gui2.dialogs.metadata_bulk_ui import Ui_MetadataBulkDialog from calibre.gui2.dialogs.tag_editor import TagEditor +from calibre.gui2.dialogs.template_line_editor import TemplateLineEditor from calibre.ebooks.metadata import string_to_authors, authors_to_string, title_sort from calibre.ebooks.metadata.book.formatter import SafeFormat from calibre.gui2.custom_column_widgets import populate_metadata_page @@ -442,6 +443,7 @@ class MetadataBulkDialog(QDialog, Ui_MetadataBulkDialog): def prepare_search_and_replace(self): self.search_for.initialize('bulk_edit_search_for') self.replace_with.initialize('bulk_edit_replace_with') + self.s_r_template.setLineEdit(TemplateLineEditor(self.s_r_template)) self.s_r_template.initialize('bulk_edit_template') self.test_text.initialize('bulk_edit_test_test') self.all_fields = ['']