diff options
| author | Skye Deving <76892045+skyedeving@users.noreply.github.com> | 2021-01-07 23:31:08 -0600 |
|---|---|---|
| committer | Skye Deving <76892045+skyedeving@users.noreply.github.com> | 2021-01-07 23:31:08 -0600 |
| commit | df24961c0d45324705fc9f70b2ff03fc490dd777 (patch) | |
| tree | d04b1fb47c05cbf4522cdc04ca6de43008f3e572 /src/debug_functions.cpp | |
| parent | c46ab13c629854377aff767aea8d342c5c5d8014 (diff) | |
Set delete on close attribute for orphaned widgets
Diffstat (limited to 'src/debug_functions.cpp')
| -rw-r--r-- | src/debug_functions.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/debug_functions.cpp b/src/debug_functions.cpp index 477eec76..1613a7d1 100644 --- a/src/debug_functions.cpp +++ b/src/debug_functions.cpp @@ -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")); |
