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);
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user