mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
bd48dec0fa
commit
3ffef84a43
@ -452,7 +452,9 @@ class Delegate(QStyledItemDelegate): # {{{
|
||||
|
||||
def to_doc(self, index):
|
||||
data = index.data(Qt.UserRole).toPyObject()
|
||||
if data.is_shortcut:
|
||||
if data is None:
|
||||
html = _('<b>An unknown error occurred</b>')
|
||||
elif data.is_shortcut:
|
||||
shortcut = data.data
|
||||
# Shortcut
|
||||
keys = [unicode(k.toString(k.NativeText)) for k in shortcut['keys']]
|
||||
|
Loading…
x
Reference in New Issue
Block a user