mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-27 15:03:29 +02:00
Fix #1906538 [Private bug](https://bugs.launchpad.net/calibre/+bug/1906538)
This commit is contained in:
parent
1e1aedbe41
commit
0e4606ff2b
1 changed files with 4 additions and 1 deletions
|
|
@ -218,7 +218,10 @@ def __init__(self, parent):
|
|||
|
||||
def show_context_menu(self, pos):
|
||||
item = self.itemAt(pos)
|
||||
result = item.data(0, Qt.UserRole)
|
||||
if item is not None:
|
||||
result = item.data(0, Qt.UserRole)
|
||||
else:
|
||||
result = None
|
||||
items = self.selectedItems()
|
||||
m = QMenu(self)
|
||||
if isinstance(result, dict):
|
||||
|
|
|
|||
Loading…
Reference in a new issue