Prevent closing :report dialog when pressing <escape>
This commit is contained in:
parent
17cfb0d39c
commit
40e391e199
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user