one occasion less to crash
(on debug builds an assert is still possible)
This commit is contained in:
parent
3188b417f4
commit
34226faec1
@ -91,6 +91,9 @@ ContainmentInterface::ContainmentInterface(DeclarativeAppletScript *parent, cons
|
|||||||
|
|
||||||
connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit,
|
connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit,
|
||||||
[=]() {
|
[=]() {
|
||||||
|
if (!containment()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
disconnect(containment(), &Plasma::Containment::appletRemoved,
|
disconnect(containment(), &Plasma::Containment::appletRemoved,
|
||||||
this, &ContainmentInterface::appletRemovedForward);
|
this, &ContainmentInterface::appletRemovedForward);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user