one occasion less to crash

(on debug builds an assert is still possible)
This commit is contained in:
Marco Martin 2014-06-17 11:48:16 +02:00
parent 3188b417f4
commit 34226faec1

View File

@ -91,6 +91,9 @@ ContainmentInterface::ContainmentInterface(DeclarativeAppletScript *parent, cons
connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit,
[=]() {
if (!containment()) {
return;
}
disconnect(containment(), &Plasma::Containment::appletRemoved,
this, &ContainmentInterface::appletRemovedForward);
});