mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
GUI: Regex Test, clear matched items when no regex is present. Speed up clearing by not running regex matching on empty patterns.
This commit is contained in:
parent
bad6cad84b
commit
30f65e0eba
@ -47,6 +47,8 @@ class RegexBuilder(QDialog, Ui_RegexBuilder):
|
||||
return False
|
||||
else:
|
||||
self.regex.setStyleSheet('QLineEdit { color: black; background-color: white; }')
|
||||
self.preview.setExtraSelections([])
|
||||
return False
|
||||
return True
|
||||
|
||||
def do_test(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user