if containment gets destroyed, destroy all dialogs

BUG:334977
This commit is contained in:
Marco Martin 2014-05-19 11:15:51 +02:00
parent 9d3344d0a6
commit 682bf5f149

View File

@ -196,6 +196,9 @@ void AppletPrivate::askDestroy()
QObject::connect(q, &Applet::immutabilityChanged, [=] () { QObject::connect(q, &Applet::immutabilityChanged, [=] () {
box->close(); box->close();
}); });
QObject::connect(q, &QObject::destroyed, [=] () {
box->close();
});
QObject::connect(box->button(QMessageBox::Yes), &QAbstractButton::clicked, QObject::connect(box->button(QMessageBox::Yes), &QAbstractButton::clicked,
[ = ]() { [ = ]() {
transient = true; transient = true;