From f2187c6965a65286e4433e0c1925b5eec77262df Mon Sep 17 00:00:00 2001 From: "Justin F. Knotzke" Date: Fri, 2 Jan 2009 18:09:26 +0000 Subject: [PATCH] While browsing the GC code, I found that there was not an explicit deletion of the Tools (CP Calculator) Dialog, nor was the attribute set that tells the framework to delete the dialog when it's dismissed. Since the other dialogs use the attribute, this patch does the same. --jtc --- src/ToolsDialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ToolsDialog.cpp b/src/ToolsDialog.cpp index 6c21a8b5e..a419482d5 100644 --- a/src/ToolsDialog.cpp +++ b/src/ToolsDialog.cpp @@ -21,6 +21,7 @@ void ToolsDialog::setupUi(QDialog *ToolsDialog) { + setAttribute(Qt::WA_DeleteOnClose); if (ToolsDialog->objectName().isEmpty()) ToolsDialog->setObjectName(QString::fromUtf8("ToolsDialog")); ToolsDialog->setWindowModality(Qt::WindowModal);