don't save containment stuff if you're not a containment

svn path=/trunk/KDE/kdelibs/; revision=1126393
This commit is contained in:
Chani Armitage 2010-05-13 21:40:02 +00:00
parent 67180894e9
commit 5d68a5bc56

View File

@ -411,6 +411,11 @@ void Containment::save(KConfigGroup &g) const
// locking is saved in Applet::save // locking is saved in Applet::save
Applet::save(group); Applet::save(group);
if (! isContainment()) {
return;
}
group.writeEntry("screen", d->screen); group.writeEntry("screen", d->screen);
group.writeEntry("desktop", d->desktop); group.writeEntry("desktop", d->desktop);
group.writeEntry("formfactor", (int)d->formFactor); group.writeEntry("formfactor", (int)d->formFactor);