From 7ce7176475d00d356eb2ec5310dbcc45c887aec0 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 9 Jun 2018 20:20:08 +0200 Subject: [PATCH] Fix lint --- qutebrowser/config/configdata.yml | 2 +- qutebrowser/misc/crashdialog.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index 7aa3f3933..c6a0443f7 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -974,7 +974,7 @@ hints.uppercase: input.escape_quits_reporter: type: Bool default: True - desc: Allow escape to quit the crash reporter. + desc: Allow Escape to quit the crash reporter. input.forward_unbound_keys: default: auto diff --git a/qutebrowser/misc/crashdialog.py b/qutebrowser/misc/crashdialog.py index 8585e69c4..27dec3345 100644 --- a/qutebrowser/misc/crashdialog.py +++ b/qutebrowser/misc/crashdialog.py @@ -158,8 +158,8 @@ class _CrashDialog(QDialog): self._init_info_text() self._init_buttons() - # Prevent closing :report dialogs when pressing def keyPressEvent(self, e): + """Prevent closing :report dialogs when pressing .""" if config.val.input.escape_quits_reporter or e.key() != Qt.Key_Escape: super().keyPressEvent(e)