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

List:       kde-commits
Subject:    KDE/kdelibs/kross/ui
From:       Sebastian Sauer <mail () dipe ! org>
Date:       2007-06-04 23:00:30
Message-ID: 1180998030.810944.25900.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 671527 by sebsauer:

dirty hack to be sure we proper cleanup everything

 M  +10 -0     guiclient.cpp  


--- trunk/KDE/kdelibs/kross/ui/guiclient.cpp #671526:671527
@@ -86,8 +86,18 @@
     Manager::self().actionCollection()->readXmlResources("data", partname + "/scripts/*.rc");
 }
 
+//FIXME cleanup only what really needs cleanup
+void finalizeCollection(Kross::ActionCollection* c)
+{
+    foreach(Kross::Action* a, c->actions())
+        a->finalize();
+    foreach(QString s, c->collections())
+        finalizeCollection( c->collection(s) );
+}
+
 GUIClient::~GUIClient()
 {
+    finalizeCollection( Kross::Manager::self().actionCollection() );
     delete d;
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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