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:
Kovid Goyal 2011-08-27 11:42:41 -06:00
parent 08a8ed877e
commit f429ab2730

View File

@ -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