Fix #1957841 [[Enhancement] Use the same date format in context menu as in Book details panel/window](https://bugs.launchpad.net/calibre/+bug/1957841)

This commit is contained in:
Kovid Goyal 2022-01-18 11:15:40 +05:30
parent 0cf7af69ac
commit 23fe52192b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -377,7 +377,7 @@ def add_item_specific_entries(menu, data, book_info, copy_menu, search_menu):
lambda: QApplication.instance().clipboard().setText(v)) lambda: QApplication.instance().clipboard().setText(v))
ac = book_info.remove_item_action ac = book_info.remove_item_action
ac.data = (field, remove_value, book_id) ac.data = (field, remove_value, book_id)
ac.setText(_('Remove %s from this book') % escape_for_menu(value)) ac.setText(_('Remove %s from this book') % escape_for_menu(data.get('original_value') or value))
menu.addAction(ac) menu.addAction(ac)
else: else:
v = data.get('original_value') or data.get('value') v = data.get('original_value') or data.get('value')