mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
RgexBuilder: Addb back return when user declines to select a format.
This commit is contained in:
parent
ea3789b6f7
commit
323ddfe8fd
@ -166,6 +166,8 @@ class RegexEdit(QWidget, Ui_Edit):
|
||||
|
||||
def builder(self):
|
||||
bld = RegexBuilder(self.db, self.book_id, self.edit.text(), self)
|
||||
if bld.cancelled:
|
||||
return
|
||||
if bld.exec_() == bld.Accepted:
|
||||
self.edit.setText(bld.regex.text())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user