Skip to content

Commit

Permalink
Merge from 3.x: PR #6251
Browse files Browse the repository at this point in the history
Fixes #6245
  • Loading branch information
ccordoba12 committed Jan 19, 2018
2 parents 64bfe8f + 50f9043 commit ff32bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spyder/plugins/shortcuts.py
Expand Up @@ -211,7 +211,7 @@ def reject(self):
# buttons, if the cancel button was clicked without first setting focus
# to the button, it would cause a seg fault crash.
self.button_cancel.setFocus()
super().reject()
super(ShortcutEditor, self).reject()

@Slot()
def accept(self):
Expand All @@ -220,7 +220,7 @@ def accept(self):
# buttons, if the ok button was clicked without first setting focus to
# the button, it would cause a seg fault crash.
self.button_ok.setFocus()
super().accept()
super(ShortcutEditor, self).accept()

def keyPressEvent(self, e):
"""Qt override."""
Expand Down

0 comments on commit ff32bfe

Please sign in to comment.