From c786e17ba17ea6bf814114ae1b49d535ab5dc2e0 Mon Sep 17 00:00:00 2001 From: Chani Armitage Date: Wed, 23 Sep 2009 20:37:25 +0000 Subject: [PATCH] since this hack wasn't helping, try without it svn path=/trunk/KDE/kdelibs/; revision=1027321 --- applet.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/applet.cpp b/applet.cpp index 4d12f1275..c24ba5b00 100644 --- a/applet.cpp +++ b/applet.cpp @@ -514,10 +514,10 @@ void AppletPrivate::cleanUpAndDelete() resetConfigurationObject(); - QGraphicsScene *s = q->scene(); q->scene()->removeItem(q); + /*a hack to try and avoid crashes. doesn't seem to work. + QGraphicsScene *s = q->scene(); kDebug(); - //a hack to try and avoid crashes. doesn't seem to work. QGraphicsItem *f = s->focusItem(); if (f) { QGraphicsItem *top = f->topLevelItem(); @@ -527,6 +527,7 @@ void AppletPrivate::cleanUpAndDelete() s->setFocusItem(0); } } + */ q->deleteLater(); }