delay the saving of new applets so that layouts can do their job

svn path=/trunk/KDE/kdelibs/; revision=897306
This commit is contained in:
Aaron J. Seigo 2008-12-15 17:48:28 +00:00
parent a029c8396f
commit 6e6cb12b9b

View File

@ -750,18 +750,16 @@ void Containment::addApplet(Applet *applet, const QPointF &pos, bool delayInit)
emit appletAdded(applet, pos);
if (!delayInit) {
KConfigGroup cg;
applet->save(cg);
emit configNeedsSaving();
}
if (!currentContainment) {
applet->updateConstraints(Plasma::StartupCompletedConstraint);
if (!delayInit) {
applet->flushPendingConstraintsEvents();
}
}
if (!delayInit) {
applet->d->scheduleModificationNotification();
}
}
Applet::List Containment::applets() const