Bug 132958

Summary: undo in diagram breaks code-generation available classes
Product: [Applications] umbrello Reporter: Andrew Bramble <developer>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal CC: finex, kde
Priority: NOR Keywords: triaged
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 4.13.0

Description Andrew Bramble 2006-08-25 10:41:30 UTC
Version:           1.5.4 (using KDE KDE 3.5.1)
Installed from:    Compiled From Sources
Compiler:          gcc 
OS:                Linux

I have noticed that after an undo the list of available classes in Code->Code Generation Wizard is limited to classes that are not contained by any thing. 
To reproduce. 

Add class "Car"
Add class "Wheel"
connect with a Containment. 

Code Generation wizard shows
Car
Car::Wheel

Add note
Type some thing in the note.

Choose Edit->Undo

Code Generation wizard shows
Car

Generate All Code only creates the Car class

This occurs on SLED10, with  Umbrello 1.5.4 built from source .
Comment 1 FiNeX 2009-08-09 14:36:56 UTC
On current trunk the code generator only shows and generate the Car class too (even without doing the undo)
Comment 2 Joris Steyn 2014-01-04 11:28:26 UTC
This has been fixed. It happened when creating the classes via the list view - Umbrello was not signalled correctly of object creation. When saving and re-loading the XMI, everything worked fine.