Only consider a containment as finished if it actually passes a "true".

So far, we were only considering the fact that teh signal was being
emitted, and that's doesn't seem correct.

REVIEW: 119191
This commit is contained in:
Aleix Pol 2014-07-09 12:51:24 +02:00
parent 8fb62cc0a4
commit 459f81814d

View File

@ -532,7 +532,10 @@ QList<Plasma::Containment *> CoronaPrivate::importLayout(const KConfigGroup &con
foreach (Containment *containment, containments) {
if (!containment->isUiReady() && containment->lastScreen() < q->numScreens()) {
++containmentsStarting;
QObject::connect(containment, &Plasma::Containment::uiReadyChanged, [ = ]() {
QObject::connect(containment, &Plasma::Containment::uiReadyChanged, [=](bool ready) {
if (!ready)
return;
--containmentsStarting;
if (containmentsStarting <= 0) {
emit q->startupCompleted();