add containments to the collection sooner so that they can be positioned properly

svn path=/trunk/KDE/kdelibs/; revision=882247
This commit is contained in:
Aaron J. Seigo 2008-11-10 07:49:20 +00:00
parent 7afd2e9d99
commit 5bbb0685bb

View File

@ -152,6 +152,7 @@ public:
}
static_cast<Applet*>(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()),