Set delete on close attribute for orphaned widgets
This commit is contained in:
parent
c46ab13c62
commit
df24961c0d
@ -9,6 +9,7 @@ void call_error(QString p_message)
|
|||||||
{
|
{
|
||||||
QMessageBox *msgBox = new QMessageBox;
|
QMessageBox *msgBox = new QMessageBox;
|
||||||
|
|
||||||
|
msgBox->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
msgBox->setText(QCoreApplication::translate("debug_functions", "Error: %1")
|
msgBox->setText(QCoreApplication::translate("debug_functions", "Error: %1")
|
||||||
.arg(p_message));
|
.arg(p_message));
|
||||||
msgBox->setWindowTitle(
|
msgBox->setWindowTitle(
|
||||||
@ -22,6 +23,7 @@ void call_notice(QString p_message)
|
|||||||
{
|
{
|
||||||
QMessageBox *msgBox = new QMessageBox;
|
QMessageBox *msgBox = new QMessageBox;
|
||||||
|
|
||||||
|
msgBox->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
msgBox->setText(p_message);
|
msgBox->setText(p_message);
|
||||||
msgBox->setWindowTitle(
|
msgBox->setWindowTitle(
|
||||||
QCoreApplication::translate("debug_functions", "Notice"));
|
QCoreApplication::translate("debug_functions", "Notice"));
|
||||||
|
Loading…
Reference in New Issue
Block a user