From 1171ef67d8567fe0075e810db6c861d1ecf99f2e Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 18 Nov 2008 00:43:52 +0000 Subject: [PATCH] deleteLater is unecessary in this case and it just screws up some of our use cases such as the screen saver toolbox svn path=/trunk/KDE/kdelibs/; revision=885859 --- private/toolbox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/private/toolbox.cpp b/private/toolbox.cpp index b4feb7434..c8c59b756 100644 --- a/private/toolbox.cpp +++ b/private/toolbox.cpp @@ -119,6 +119,7 @@ void ToolBox::addTool(QAction *action) //make enabled/disabled tools appear/disappear instantly connect(tool, SIGNAL(changed()), this, SLOT(updateToolBox())); + kDebug() << "added tool" << action->text() << (QGraphicsItem*)tool; } void ToolBox::updateToolBox() @@ -136,7 +137,7 @@ void ToolBox::removeTool(QAction *action) Plasma::IconWidget *tool = dynamic_cast(child); if (tool && tool->action() == action) { //kDebug() << "tool found!"; - tool->deleteLater(); + delete tool; break; } }