diff --git a/corona.cpp b/corona.cpp index 304a9e0aa..5ece1d2f7 100644 --- a/corona.cpp +++ b/corona.cpp @@ -152,6 +152,7 @@ public: } static_cast(containment)->d->setIsContainment(true); + containments.append(containment); q->addItem(containment); if (!delayedInit) { @@ -162,7 +163,6 @@ public: q->requestConfigSync(); } - containments.append(containment); QObject::connect(containment, SIGNAL(destroyed(QObject*)), q, SLOT(containmentDestroyed(QObject*))); QObject::connect(containment, SIGNAL(configNeedsSaving()),