Prevent closing :report dialog when pressing <escape>

This commit is contained in:
Jay Kamat 2018-05-23 21:25:43 -07:00
parent 17cfb0d39c
commit 40e391e199
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5

View File

@ -158,6 +158,11 @@ class _CrashDialog(QDialog):
self._init_info_text()
self._init_buttons()
# Prevent closing :report dialogs when pressing <escape>
def keyPressEvent(self, e):
if e.key() != Qt.Key_Escape:
super().keyPressEvent(e)
def __repr__(self):
return utils.get_repr(self)