Edit book: Fix 'Show' details button not visible when doing 'Replace' all rather than 'Count all'

This commit is contained in:
Kovid Goyal 2017-07-10 11:34:21 +05:30
parent 3e4da5429e
commit 7ed129d73f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1471,7 +1471,7 @@ def run_search(
if show_diff and count > 0:
d = MessageBox(MessageBox.INFO, _('Searching done'), prepare_string_for_xml(msg), parent=gui_parent, show_copy_button=False, det_msg=det_msg)
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.setIcon(QIcon(I('diff.png'))), b.clicked.connect(d.accept)
b.clicked.connect(partial(show_current_diff, allow_revert=True), type=Qt.QueuedConnection)
d.exec_()
else: