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:
parent
a029c8396f
commit
6e6cb12b9b
|
@ -750,18 +750,16 @@ void Containment::addApplet(Applet *applet, const QPointF &pos, bool delayInit)
|
||||||
|
|
||||||
emit appletAdded(applet, pos);
|
emit appletAdded(applet, pos);
|
||||||
|
|
||||||
if (!delayInit) {
|
|
||||||
KConfigGroup cg;
|
|
||||||
applet->save(cg);
|
|
||||||
emit configNeedsSaving();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!currentContainment) {
|
if (!currentContainment) {
|
||||||
applet->updateConstraints(Plasma::StartupCompletedConstraint);
|
applet->updateConstraints(Plasma::StartupCompletedConstraint);
|
||||||
if (!delayInit) {
|
if (!delayInit) {
|
||||||
applet->flushPendingConstraintsEvents();
|
applet->flushPendingConstraintsEvents();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!delayInit) {
|
||||||
|
applet->d->scheduleModificationNotification();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Applet::List Containment::applets() const
|
Applet::List Containment::applets() const
|
||||||
|
|
Loading…
Reference in New Issue
Block a user