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:
parent
c786e17ba1
commit
8581d2b45c
13
applet.cpp
13
applet.cpp
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user