be extra sure that the applet has an entry in the config on being added so when we config sync we're guaranteed they are in there

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827479
This commit is contained in:
Aaron J. Seigo 2008-07-03 05:46:25 +00:00
parent 355df19374
commit 92ee66d578
3 changed files with 6 additions and 3 deletions

View File

@ -1573,8 +1573,7 @@ void AppletPrivate::init()
if (!api.isEmpty()) {
// find where the Package is
QString path = KStandardDirs::locate("data",
"plasma/plasmoids/" + appletDescription.pluginName() +
"/");
"plasma/plasmoids/" + appletDescription.pluginName() + "/");
if (path.isEmpty()) {
q->setFailedToLaunch(true, i18n("Could not locate the %1 package required for the %2 widget.",

View File

@ -572,6 +572,8 @@ 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();
}

View File

@ -325,6 +325,8 @@ KSharedConfigPtr Corona::config() const
Containment* Corona::addContainment(const QString& name, const QVariantList& args)
{
Containment *c = d->addContainment(name, args, 0, false);
KConfigGroup cg = c->config();
c->save(cg);
requestConfigSync();
return c;
}