fixed alternate shortcut

This commit is contained in:
Andreas Preikschat 2011-04-02 17:45:00 +02:00
parent e3d822f07a
commit 958155e7d7

View File

@ -186,7 +186,7 @@ class ShortcutListForm(QtGui.QDialog, Ui_ShortcutListDialog):
shortcuts.append(action.shortcuts()[1]) shortcuts.append(action.shortcuts()[1])
# We are changing the secondary shortcut. # We are changing the secondary shortcut.
elif self.column == 2: elif self.column == 2:
if len(action.shortcuts()) == 1: if len(action.shortcuts()) != 0:
shortcuts.append(action.shortcuts()[0]) shortcuts.append(action.shortcuts()[0])
shortcuts.append(QtGui.QKeySequence(self.shortcutButton.text())) shortcuts.append(QtGui.QKeySequence(self.shortcutButton.text()))
else: else: