[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/plasma/private
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2008-11-18 0:43:53
Message-ID: 1226969033.330633.24613.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 885859 by aseigo:

deleteLater is unecessary in this case and it just screws up some of our use cases \
such as the screen saver toolbox


 M  +2 -1      toolbox.cpp  


--- trunk/KDE/kdelibs/plasma/private/toolbox.cpp #885858:885859
@@ -119,6 +119,7 @@
 
     //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 @@
         Plasma::IconWidget *tool = dynamic_cast<Plasma::IconWidget*>(child);
         if (tool && tool->action() == action) {
             //kDebug() << "tool found!";
-            tool->deleteLater();
+            delete tool;
             break;
         }
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic