[Uml-devel] Re: The need for deleteContents to delete objects in objectList (in umldoc.cpp)

Brian Thomas brian.thomas at gsfc.nasa.gov
Tue Nov 25 13:17:04 UTC 2003


	Ok, 

	I think I tracked this down somewhat. In my own code I've implemented the 
	umldoc::deleteContents() method with a "obj->deleteLater()" call rather than the
	older "delete obj" call and that seems to work fine. But the issue isnt solved :P

	It appears to me that the (or another) problem is actually in the umllistview code. To see the problem:
	Load umbrello with any old XMI file. Now, when cntr-N is pressed, the diagram is cleared, 
	BUT notice that another "class diagram" is entered in the list view (so you have 2 of them
	now).  Hit cntr-N (or cntl-Q) again, and you get a crash. 

	I'd fix this myself, but Im not terribly familiar with the umllistview code. I think the problem is 
	that when cntl-N (or similar command which should "refresh" the list view) is performed, its
	not cleaning up the list view as it should or perhaps someone put in a "clever" piece of code
	which is converting the first class in the list to a "class diagram" entry, or some such.

	-b.t.







More information about the umbrello-devel mailing list