From 625bb7baa483009e464d83151628cfa49d13203d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 1 Oct 2016 22:05:29 +0200 Subject: [PATCH] Clean up crash msgbox properly Fixes #2004 --- qutebrowser/misc/crashdialog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/misc/crashdialog.py b/qutebrowser/misc/crashdialog.py index 2d9d6f10a..a8b662ef9 100644 --- a/qutebrowser/misc/crashdialog.py +++ b/qutebrowser/misc/crashdialog.py @@ -91,7 +91,9 @@ def get_fatal_crash_dialog(debug, data): "those crashes I disabled the crash reporter for this case, " "but this will likely be resolved in the future with the new " "QtWebEngine backend.") - return QMessageBox(QMessageBox.Critical, title, text, QMessageBox.Ok) + msgbox = QMessageBox(QMessageBox.Critical, title, text, QMessageBox.Ok) + msgbox.setAttribute(Qt.WA_DeleteOnClose) + return msgbox else: return FatalCrashDialog(debug, data)