From 5afd616599874975cd59e056fd9e8feb74d22cec Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 26 Aug 2013 17:58:23 +0200 Subject: [PATCH] delete config widget when closed --- containmentconfigview.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/containmentconfigview.cpp b/containmentconfigview.cpp index 663b3c7e4..84a7ad3d1 100644 --- a/containmentconfigview.cpp +++ b/containmentconfigview.cpp @@ -147,6 +147,7 @@ void CurrentContainmentActionsModel::showConfiguration(int row) } QDialog *configDlg = new QDialog(); + configDlg->setAttribute(Qt::WA_DeleteOnClose); QLayout *lay = new QVBoxLayout(configDlg); configDlg->setLayout(lay); configDlg->setWindowModality(Qt::WindowModal); @@ -166,6 +167,7 @@ void CurrentContainmentActionsModel::showConfiguration(int row) lay->addWidget(buttons); connect(buttons, SIGNAL(accepted()), this, SLOT(acceptConfig())); + connect(buttons, SIGNAL(rejected()), this, SLOT(rejectConfig())); configDlg->show();