mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Keyboard shortcuts config: Fix clicking done in the shortcut editor with shortcuts set to default caused teh displayed shortcut to be always set to None
This commit is contained in:
parent
08a8ed877e
commit
f429ab2730
@ -515,6 +515,7 @@ class Delegate(QStyledItemDelegate): # {{{
|
|||||||
ckey = QKeySequence(ckey, QKeySequence.PortableText)
|
ckey = QKeySequence(ckey, QKeySequence.PortableText)
|
||||||
matched = False
|
matched = False
|
||||||
for s in editor.all_shortcuts:
|
for s in editor.all_shortcuts:
|
||||||
|
if s is editor.shortcut: continue
|
||||||
for k in s['keys']:
|
for k in s['keys']:
|
||||||
if k == ckey:
|
if k == ckey:
|
||||||
matched = True
|
matched = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user