save config when we add/remove containments
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=820344
This commit is contained in:
parent
d489ddc1ea
commit
272ca3002a
@ -329,7 +329,9 @@ KSharedConfigPtr Corona::config() const
|
|||||||
|
|
||||||
Containment* Corona::addContainment(const QString& name, const QVariantList& args)
|
Containment* Corona::addContainment(const QString& name, const QVariantList& args)
|
||||||
{
|
{
|
||||||
return d->addContainment(name, args, 0, false);
|
Containment *c = d->addContainment(name, args, 0, false);
|
||||||
|
d->scheduleConfigSync();
|
||||||
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Corona::destroyContainment(Containment *c)
|
void Corona::destroyContainment(Containment *c)
|
||||||
@ -348,6 +350,7 @@ void Corona::destroyContainment(Containment *c)
|
|||||||
removeItem(c);
|
removeItem(c);
|
||||||
c->config().deleteGroup();
|
c->config().deleteGroup();
|
||||||
c->deleteLater();
|
c->deleteLater();
|
||||||
|
d->scheduleConfigSync();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Corona::loadDefaultLayout()
|
void Corona::loadDefaultLayout()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user