Don't shadow outer name

This commit is contained in:
Florian Bruhin 2016-10-01 22:51:40 +02:00
parent 625bb7baa4
commit 55cefd1ab7

View File

@ -91,9 +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.")
msgbox = QMessageBox(QMessageBox.Critical, title, text, QMessageBox.Ok)
msgbox.setAttribute(Qt.WA_DeleteOnClose)
return msgbox
box = QMessageBox(QMessageBox.Critical, title, text, QMessageBox.Ok)
box.setAttribute(Qt.WA_DeleteOnClose)
return box
else:
return FatalCrashDialog(debug, data)