save/restore the desktop setting

svn path=/trunk/KDE/kdelibs/; revision=885338
This commit is contained in:
Aaron J. Seigo 2008-11-17 05:16:33 +00:00
parent 35e4fd39b2
commit e1c9aadb93

View File

@ -274,7 +274,7 @@ void Containment::restore(KConfigGroup &group)
setLocation((Plasma::Location)group.readEntry("location", (int)d->location));
setFormFactor((Plasma::FormFactor)group.readEntry("formfactor", (int)d->formFactor));
setScreen(group.readEntry("screen", d->screen));
setScreen(group.readEntry("screen", d->screen), group.readEntry("desktop", d->desktop));
setActivity(group.readEntry("activity", QString()));
flushPendingConstraintsEvents();
@ -303,6 +303,7 @@ void Containment::save(KConfigGroup &g) const
// locking is saved in Applet::save
Applet::save(group);
group.writeEntry("screen", d->screen);
group.writeEntry("desktop", d->desktop);
group.writeEntry("formfactor", (int)d->formFactor);
group.writeEntry("location", (int)d->location);
group.writeEntry("activity", d->context()->currentActivity());