remove the hack.

I'm not seeing the addItem crash any more; if anyone else gets it, tell
me.

svn path=/trunk/KDE/kdelibs/; revision=1027322
This commit is contained in:
Chani Armitage 2009-09-23 20:37:29 +00:00
parent c786e17ba1
commit 8581d2b45c

View File

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