mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Edit Book: Workaround for a Qt regression that caused "See what changed" after a search and replace on OS X causing the application to become unresponsive. Fixes #1466732 [[calibre 2.31 on Mac OS X 10.10.3] Closing changes preview window after replace all in ebook editor blocks entire calibre interface](https://bugs.launchpad.net/calibre/+bug/1466732)
This commit is contained in:
parent
35d0b6f173
commit
e69c4b357d
@ -1326,7 +1326,7 @@ def run_search(
|
||||
d = MessageBox(MessageBox.INFO, _('Searching done'), prepare_string_for_xml(msg), parent=gui_parent, show_copy_button=False)
|
||||
d.diffb = b = d.bb.addButton(_('See what &changed'), d.bb.ActionRole)
|
||||
b.setIcon(QIcon(I('diff.png'))), d.set_details(None), b.clicked.connect(d.accept)
|
||||
b.clicked.connect(partial(show_current_diff, allow_revert=True))
|
||||
b.clicked.connect(partial(show_current_diff, allow_revert=True), type=Qt.QueuedConnection)
|
||||
d.exec_()
|
||||
else:
|
||||
info_dialog(gui_parent, _('Searching done'), prepare_string_for_xml(msg), show=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user