Fix #1864350 [Copy all in the Book details window doesn't copy all](https://bugs.launchpad.net/calibre/+bug/1864350)

This commit is contained in:
Kovid Goyal 2020-03-02 07:46:29 +05:30
parent 48fb202737
commit c3f906ea84
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -279,7 +279,7 @@ def add_item_specific_entries(menu, data, book_info):
def details_context_menu_event(view, ev, book_info):
url = view.anchorAt(ev.pos())
menu = view.createStandardContextMenu()
menu.addAction(QIcon(I('edit-copy.png')), _('Copy &all'), partial(copy_all, book_info))
menu.addAction(QIcon(I('edit-copy.png')), _('Copy &all'), partial(copy_all, view))
search_internet_added = False
if url and url.startswith('action:'):
data = json_loads(from_hex_bytes(url.split(':', 1)[1]))