stop forwarding appletRemoved on application close

the containment must not save geometries without the applets that are being deleted

BUG:335742
This commit is contained in:
Marco Martin 2014-06-03 11:59:57 +02:00
parent bd61f033f7
commit 223fe9b431

View File

@ -88,6 +88,12 @@ ContainmentInterface::ContainmentInterface(DeclarativeAppletScript *parent, cons
if (!m_appletInterfaces.isEmpty()) {
emit appletsChanged();
}
connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit,
[=]() {
disconnect(containment(), &Plasma::Containment::appletRemoved,
this, &ContainmentInterface::appletRemovedForward);
});
}
void ContainmentInterface::init()