From df4423255fd2c98ad191745606235f1d0de91011 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Tue, 26 Aug 2008 17:25:04 +0000 Subject: [PATCH] Move the clearFocus() fix to before "delete d", since we delete containments in ~CoronaPrivate svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852814 --- corona.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)