since this hack wasn't helping, try without it

svn path=/trunk/KDE/kdelibs/; revision=1027321
This commit is contained in:
Chani Armitage 2009-09-23 20:37:25 +00:00
parent ba3b1b753b
commit c786e17ba1

View File

@ -514,10 +514,10 @@ void AppletPrivate::cleanUpAndDelete()
resetConfigurationObject(); resetConfigurationObject();
QGraphicsScene *s = q->scene();
q->scene()->removeItem(q); q->scene()->removeItem(q);
/*a hack to try and avoid crashes. doesn't seem to work.
QGraphicsScene *s = q->scene();
kDebug(); kDebug();
//a hack to try and avoid crashes. doesn't seem to work.
QGraphicsItem *f = s->focusItem(); QGraphicsItem *f = s->focusItem();
if (f) { if (f) {
QGraphicsItem *top = f->topLevelItem(); QGraphicsItem *top = f->topLevelItem();
@ -527,6 +527,7 @@ void AppletPrivate::cleanUpAndDelete()
s->setFocusItem(0); s->setFocusItem(0);
} }
} }
*/
q->deleteLater(); q->deleteLater();
} }