mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-02 22:16:49 +01:00
Regex Builder: Initially highlight the already set regex.
This commit is contained in:
parent
1b2efaaf6f
commit
2782f49dca
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ def __init__(self, db, book_id, regex, *args):
|
|||
self.regex.setText(regex)
|
||||
self.regex_valid(True)
|
||||
self.highlighter = RegexHighlighter(self.preview.document())
|
||||
self.highlighter.update_regex(regex)
|
||||
|
||||
if not db or not book_id:
|
||||
self.button_box.addButton(QDialogButtonBox.Open)
|
||||
|
|
|
|||
Loading…
Reference in a new issue