Set delete on close attribute for orphaned widgets

This commit is contained in:
Skye Deving 2021-01-07 23:31:08 -06:00
parent c46ab13c62
commit df24961c0d

View File

@ -9,6 +9,7 @@ void call_error(QString p_message)
{
QMessageBox *msgBox = new QMessageBox;
msgBox->setAttribute(Qt::WA_DeleteOnClose);
msgBox->setText(QCoreApplication::translate("debug_functions", "Error: %1")
.arg(p_message));
msgBox->setWindowTitle(
@ -22,6 +23,7 @@ void call_notice(QString p_message)
{
QMessageBox *msgBox = new QMessageBox;
msgBox->setAttribute(Qt::WA_DeleteOnClose);
msgBox->setText(p_message);
msgBox->setWindowTitle(
QCoreApplication::translate("debug_functions", "Notice"));