aboutsummaryrefslogtreecommitdiff
path: root/src/debug_functions.cpp
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2021-01-08 11:00:12 -0600
committerGitHub <noreply@github.com>2021-01-08 11:00:12 -0600
commitb36263934cc3d1ed911235df27744fc591be6a70 (patch)
tree32af3c26aa7001794afc1c28471d066cfb4125ce /src/debug_functions.cpp
parentcbf8391a65a3f0dc7816b904261b3e38275ec063 (diff)
parent512b7a37de7993eeca16e52ede74a7a07de4cd30 (diff)
Merge pull request #382 from skyedeving/fix-more-leaks
Fixing more leaks from orphaned QWidgets
Diffstat (limited to 'src/debug_functions.cpp')
-rw-r--r--src/debug_functions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/debug_functions.cpp b/src/debug_functions.cpp
index 477eec7..1613a7d 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"));