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

List:       kde-commits
Subject:    kdepim/kaplan/src
From:       Don Sanders <don () sanders ! org>
Date:       2002-12-22 7:58:48
[Download RAW message or body]

CVS commit by sanders: 

Don't delete the mainwidget of a part before the part itself is deleted.

As the parts need to do cleanup before their mainwidget is deleted, (like
calling the save method of the mainwidget).

This is equivalent to ensuring parts are deleted before the widgetstack
containing the mainwidgets of the parts is deleted.


  M +3 -0      core.cpp   1.11


--- kdepim/kaplan/src/core.cpp  #1.10:1.11
@@ -81,4 +81,7 @@ Core::~Core()
 {
         saveSettings(); 
+    QPtrList<KParts::Part> parts = *m_partManager->parts();
+    parts.setAutoDelete(true);
+    parts.clear();
 }
 


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

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