From 40e391e199af6c2a7c8be400c5c444682715baa2 Mon Sep 17 00:00:00 2001 From: Jay Kamat Date: Wed, 23 May 2018 21:25:43 -0700 Subject: [PATCH] Prevent closing :report dialog when pressing --- qutebrowser/misc/crashdialog.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qutebrowser/misc/crashdialog.py b/qutebrowser/misc/crashdialog.py index 85fdf33bf..981424e6b 100644 --- a/qutebrowser/misc/crashdialog.py +++ b/qutebrowser/misc/crashdialog.py @@ -158,6 +158,11 @@ class _CrashDialog(QDialog): self._init_info_text() self._init_buttons() + # Prevent closing :report dialogs when pressing + def keyPressEvent(self, e): + if e.key() != Qt.Key_Escape: + super().keyPressEvent(e) + def __repr__(self): return utils.get_repr(self)