fixed bug (thanks to our tests)

This commit is contained in:
Andreas Preikschat 2013-03-07 12:20:57 +01:00
parent b57db1a21f
commit d916bad0c8
1 changed files with 1 additions and 0 deletions

View File

@ -330,6 +330,7 @@ class ActionList(object):
else:
log.warn(u'Shortcut "%s" is removed from "%s" because another action already uses this shortcut.' %
(shortcuts[0], action.objectName()))
shortcuts.remove(shortcuts[0])
action.setShortcuts([QtGui.QKeySequence(shortcut) for shortcut in shortcuts])
def remove_action(self, action, category=None):