mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 08:04:27 +01:00
Regex Builder: Initially highlight the already set regex.
This commit is contained in:
parent
9338cb08fd
commit
68559112b6
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