mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 19:33:41 +02:00
Fix #1869515 [Right click in the Quickview causes python error](https://bugs.launchpad.net/calibre/+bug/1869515)
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
20e88f1f8e
1 changed files with 2 additions and 0 deletions
|
|
@ -273,6 +273,8 @@ def __init__(self, gui, row):
|
|||
def show_context_menu(self, point):
|
||||
index = self.books_table.indexAt(point)
|
||||
item = self.books_table.item(index.row(), 0)
|
||||
if item is None:
|
||||
return False;
|
||||
book_id = int(item.data(Qt.UserRole))
|
||||
self.context_menu = QMenu(self)
|
||||
self.context_menu.addAction(self.view_icon, _('View'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue