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
This commit is contained in:
Justin F. Knotzke
2009-01-02 18:09:26 +00:00
parent 801a26392e
commit f2187c6965

View File

@@ -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);