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:
parent
1a321f0df1
commit
7d47005103
@ -192,6 +192,11 @@ Corona::~Corona()
|
|||||||
// also checks kiosk and parent containers
|
// also checks kiosk and parent containers
|
||||||
cg.writeEntry("immutability", (int)d->immutability);
|
cg.writeEntry("immutability", (int)d->immutability);
|
||||||
delete d;
|
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)
|
void Corona::setAppletMimeType(const QString& type)
|
||||||
|
1
view.cpp
1
view.cpp
@ -129,6 +129,7 @@ View::~View()
|
|||||||
{
|
{
|
||||||
delete d;
|
delete d;
|
||||||
// FIXME FIX a focus crash but i wasn't able to reproduce in a simple test case for Qt guys
|
// 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();
|
clearFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user