From ce5ae56f67a590b25b9f52df2e910f1a302e12ad Mon Sep 17 00:00:00 2001 From: Megamouse Date: Wed, 14 Aug 2024 19:34:37 +0200 Subject: [PATCH] Qt/patches: delete message boxes on close --- rpcs3/rpcs3qt/patch_manager_dialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpcs3/rpcs3qt/patch_manager_dialog.cpp b/rpcs3/rpcs3qt/patch_manager_dialog.cpp index d50260a2b8..51f61cf4f7 100644 --- a/rpcs3/rpcs3qt/patch_manager_dialog.cpp +++ b/rpcs3/rpcs3qt/patch_manager_dialog.cpp @@ -1069,6 +1069,7 @@ void patch_manager_dialog::dropEvent(QDropEvent* event) QMessageBox* mb = new QMessageBox(QMessageBox::Icon::Critical, tr("Validation failed"), message, QMessageBox::Ok, this); mb->setInformativeText(tr("To see the error log, please click \"Show Details\".")); mb->setDetailedText(tr("%0").arg(summary)); + mb->setAttribute(Qt::WA_DeleteOnClose); // Smartass hack to make the unresizeable message box wide enough for the changelog const int log_width = QLabel(summary).sizeHint().width(); @@ -1281,6 +1282,7 @@ bool patch_manager_dialog::handle_json(const QByteArray& data) QMessageBox* mb = new QMessageBox(QMessageBox::Icon::Critical, tr("Validation failed"), message, QMessageBox::Ok, this); mb->setInformativeText(tr("To see the error log, please click \"Show Details\".")); mb->setDetailedText(tr("%0").arg(summary)); + mb->setAttribute(Qt::WA_DeleteOnClose); // Smartass hack to make the unresizeable message box wide enough for the changelog const int log_width = QLabel(message).sizeHint().width();