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:
Kovid Goyal 2015-06-20 14:26:55 +05:30
parent 35d0b6f173
commit e69c4b357d

View File

@ -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)