mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Regex Builder: Initially highlight the already set regex.
This commit is contained in:
parent
9338cb08fd
commit
68559112b6
@ -51,6 +51,7 @@ class RegexBuilder(QDialog, Ui_RegexBuilder):
|
||||
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…
x
Reference in New Issue
Block a user