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:
Aaron J. Seigo 2008-07-10 20:20:37 +00:00
parent 2c7369030d
commit f81134ff97

View File

@ -590,9 +590,6 @@ void Containment::addApplet(Applet *applet, const QPointF &pos, bool delayInit)
applet->updateConstraints(Plasma::AllConstraints | Plasma::StartupCompletedConstraint);
if (!delayInit) {
applet->flushPendingConstraintsEvents();
KConfigGroup *cg = applet->d->mainConfigGroup();
applet->save(*cg);
emit configNeedsSaving();
}
emit appletAdded(applet, pos);
@ -1303,6 +1300,9 @@ void ContainmentPrivate::containmentAppletAnimationComplete(QGraphicsItem *item,
if (applet) {
applet->installSceneEventFilter(q);
KConfigGroup *cg = applet->d->mainConfigGroup();
applet->save(*cg);
emit q->configNeedsSaving();
//applet->setWindowFlags(Qt::Window);
}
}