correct save point for applets; now they don't get saved with a 0,0,0,0,0,1 matrix
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=830604
This commit is contained in:
parent
2c7369030d
commit
f81134ff97
@ -590,9 +590,6 @@ void Containment::addApplet(Applet *applet, const QPointF &pos, bool delayInit)
|
|||||||
applet->updateConstraints(Plasma::AllConstraints | Plasma::StartupCompletedConstraint);
|
applet->updateConstraints(Plasma::AllConstraints | Plasma::StartupCompletedConstraint);
|
||||||
if (!delayInit) {
|
if (!delayInit) {
|
||||||
applet->flushPendingConstraintsEvents();
|
applet->flushPendingConstraintsEvents();
|
||||||
KConfigGroup *cg = applet->d->mainConfigGroup();
|
|
||||||
applet->save(*cg);
|
|
||||||
emit configNeedsSaving();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
emit appletAdded(applet, pos);
|
emit appletAdded(applet, pos);
|
||||||
@ -1303,6 +1300,9 @@ void ContainmentPrivate::containmentAppletAnimationComplete(QGraphicsItem *item,
|
|||||||
|
|
||||||
if (applet) {
|
if (applet) {
|
||||||
applet->installSceneEventFilter(q);
|
applet->installSceneEventFilter(q);
|
||||||
|
KConfigGroup *cg = applet->d->mainConfigGroup();
|
||||||
|
applet->save(*cg);
|
||||||
|
emit q->configNeedsSaving();
|
||||||
//applet->setWindowFlags(Qt::Window);
|
//applet->setWindowFlags(Qt::Window);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user