delete config widget when closed
This commit is contained in:
parent
0a3eae6806
commit
bf82942528
@ -147,6 +147,7 @@ void CurrentContainmentActionsModel::showConfiguration(int row)
|
|||||||
}
|
}
|
||||||
|
|
||||||
QDialog *configDlg = new QDialog();
|
QDialog *configDlg = new QDialog();
|
||||||
|
configDlg->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
QLayout *lay = new QVBoxLayout(configDlg);
|
QLayout *lay = new QVBoxLayout(configDlg);
|
||||||
configDlg->setLayout(lay);
|
configDlg->setLayout(lay);
|
||||||
configDlg->setWindowModality(Qt::WindowModal);
|
configDlg->setWindowModality(Qt::WindowModal);
|
||||||
@ -166,6 +167,7 @@ void CurrentContainmentActionsModel::showConfiguration(int row)
|
|||||||
lay->addWidget(buttons);
|
lay->addWidget(buttons);
|
||||||
|
|
||||||
connect(buttons, SIGNAL(accepted()), this, SLOT(acceptConfig()));
|
connect(buttons, SIGNAL(accepted()), this, SLOT(acceptConfig()));
|
||||||
|
connect(buttons, SIGNAL(rejected()), this, SLOT(rejectConfig()));
|
||||||
|
|
||||||
|
|
||||||
configDlg->show();
|
configDlg->show();
|
||||||
|
Loading…
Reference in New Issue
Block a user