diff --git a/corona.cpp b/corona.cpp index 80b1bb3b1..11abea15f 100644 --- a/corona.cpp +++ b/corona.cpp @@ -186,17 +186,17 @@ Corona::Corona(QObject *parent) Corona::~Corona() { + // FIXME: Same fix as in Plasma::View - make sure that when the focused widget is + // 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; - - // FIXME: Same fix as in Plasma::View - make sure that when the focused widget is - // destroyed we don't try to transfer it to something that's already been - // deleted. - clearFocus(); } void Corona::setAppletMimeType(const QString& type)