From e69c4b357dfc67712965b584587f433de5d3b8df Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 20 Jun 2015 14:26:55 +0530 Subject: [PATCH] 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) --- src/calibre/gui2/tweak_book/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/search.py b/src/calibre/gui2/tweak_book/search.py index 50fdad1d3c..aa99d044cb 100644 --- a/src/calibre/gui2/tweak_book/search.py +++ b/src/calibre/gui2/tweak_book/search.py @@ -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)