close the remove dialog if containment locks
BUG:334978
This commit is contained in:
parent
cfda5c4d70
commit
9d3344d0a6
@ -193,6 +193,9 @@ void AppletPrivate::askDestroy()
|
|||||||
box->setWindowFlags((Qt::WindowFlags)(box->windowFlags() | Qt::WA_DeleteOnClose));
|
box->setWindowFlags((Qt::WindowFlags)(box->windowFlags() | Qt::WA_DeleteOnClose));
|
||||||
box->open();
|
box->open();
|
||||||
|
|
||||||
|
QObject::connect(q, &Applet::immutabilityChanged, [=] () {
|
||||||
|
box->close();
|
||||||
|
});
|
||||||
QObject::connect(box->button(QMessageBox::Yes), &QAbstractButton::clicked,
|
QObject::connect(box->button(QMessageBox::Yes), &QAbstractButton::clicked,
|
||||||
[ = ]() {
|
[ = ]() {
|
||||||
transient = true;
|
transient = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user