From f429ab27301668996b9a085d89b0777ed5f9c770 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 27 Aug 2011 11:42:41 -0600 Subject: [PATCH] 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 --- src/calibre/gui2/keyboard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/keyboard.py b/src/calibre/gui2/keyboard.py index 8a073cfcfe..354a3e786a 100644 --- a/src/calibre/gui2/keyboard.py +++ b/src/calibre/gui2/keyboard.py @@ -515,6 +515,7 @@ class Delegate(QStyledItemDelegate): # {{{ ckey = QKeySequence(ckey, QKeySequence.PortableText) matched = False for s in editor.all_shortcuts: + if s is editor.shortcut: continue for k in s['keys']: if k == ckey: matched = True