Hopefully fix bug 165051. It seems to be quite elusive, so I can't check whether it will for certain.

Clears the focus on the Corona before ~QGraphicsView runs.  See comment for more info.

BUG: 165051


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851511
This commit is contained in:
Alex Merry 2008-08-23 21:59:27 +00:00
parent 1a321f0df1
commit 7d47005103
2 changed files with 6 additions and 0 deletions

View File

@ -192,6 +192,11 @@ Corona::~Corona()
// 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)

View File

@ -129,6 +129,7 @@ View::~View()
{
delete d;
// FIXME FIX a focus crash but i wasn't able to reproduce in a simple test case for Qt guys
// NB: this is also done in Corona
clearFocus();
}