mirror of https://gitlab.com/openlp/openlp.git
replaced has_key
This commit is contained in:
parent
3cde99d9d9
commit
08743f147c
|
@ -344,7 +344,7 @@ class ShortcutListForm(QtGui.QDialog, Ui_ShortcutListDialog):
|
|||
if category.name is None:
|
||||
continue
|
||||
for action in category.actions:
|
||||
if self.changedActions.has_key(action):
|
||||
if action in self.changedActions:
|
||||
old_shortcuts = map(unicode,
|
||||
map(QtGui.QKeySequence.toString, action.shortcuts()))
|
||||
action.setShortcuts(self.changedActions[action])
|
||||
|
@ -455,7 +455,7 @@ class ShortcutListForm(QtGui.QDialog, Ui_ShortcutListDialog):
|
|||
those shortcuts which are not saved yet but already assigned (as changes
|
||||
are applied when closing the dialog).
|
||||
"""
|
||||
if self.changedActions.has_key(action):
|
||||
if action in self.changedActions:
|
||||
return self.changedActions[action]
|
||||
return action.shortcuts()
|
||||
|
||||
|
|
Loading…
Reference in New Issue