[Uml-devel] kdesdk/umbrello/umbrello
    Oliver Kellogg 
    okellogg at users.sourceforge.net
       
    Sat Nov 29 08:55:04 UTC 2003
    
    
  
CVS commit by okellogg: 
deleteContents(): Brian's suggestion of using obj->deleteLater() works fine.
  M +1 -3      umldoc.cpp   1.105
--- kdesdk/umbrello/umbrello/umldoc.cpp  #1.104:1.105
@@ -380,8 +380,6 @@ void UMLDoc::deleteContents() {
                 if(objectList.count() > 0) {
                         // clear our object list. We do this explicitly since setAutoDelete is false for the objectList now. 
-                        /* Sorry Brian, but this crashes (see bug 68701.)
                         for(UMLObject * obj = objectList.first(); obj != 0; obj = objectList.next())
-                                delete obj;
-                         */
+                                obj->deleteLater();
                         objectList.clear();
                 }
    
    
More information about the umbrello-devel
mailing list