Clean up crash msgbox properly

Fixes #2004
This commit is contained in:
Florian Bruhin 2016-10-01 22:05:29 +02:00
parent e73932a555
commit 625bb7baa4

View File

@ -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)