close the remove dialog if containment locks

BUG:334978
This commit is contained in:
Marco Martin 2014-05-19 11:10:24 +02:00
parent cfda5c4d70
commit 9d3344d0a6

View File

@ -193,6 +193,9 @@ void AppletPrivate::askDestroy()
box->setWindowFlags((Qt::WindowFlags)(box->windowFlags() | Qt::WA_DeleteOnClose));
box->open();
QObject::connect(q, &Applet::immutabilityChanged, [=] () {
box->close();
});
QObject::connect(box->button(QMessageBox::Yes), &QAbstractButton::clicked,
[ = ]() {
transient = true;