save immutability when it changes rather than on exit; prevents crashes from getting in the way
BUG:177756 svn path=/trunk/KDE/kdelibs/; revision=897281
This commit is contained in:
parent
22bd89da08
commit
32846f0e75
13
corona.cpp
13
corona.cpp
@ -208,12 +208,6 @@ Corona::~Corona()
|
||||
// destroyed we don't try to transfer it to something that's already been
|
||||
// deleted.
|
||||
clearFocus();
|
||||
|
||||
KConfigGroup cg(config(), "General");
|
||||
|
||||
// we call the dptr member directly for locked since isImmutable()
|
||||
// also checks kiosk and parent containers
|
||||
cg.writeEntry("immutability", (int)d->immutability);
|
||||
delete d;
|
||||
}
|
||||
|
||||
@ -542,6 +536,13 @@ void Corona::setImmutability(const ImmutabilityType immutable)
|
||||
kDebug() << "setting immutability to" << immutable;
|
||||
d->immutability = immutable;
|
||||
d->updateContainmentImmutability();
|
||||
|
||||
KConfigGroup cg(config(), "General");
|
||||
|
||||
// we call the dptr member directly for locked since isImmutable()
|
||||
// also checks kiosk and parent containers
|
||||
cg.writeEntry("immutability", (int)d->immutability);
|
||||
requestConfigSync();
|
||||
}
|
||||
|
||||
} // namespace Plasma
|
||||
|
Loading…
x
Reference in New Issue
Block a user