Bug 350313

Summary: Impossible to delete entity with check constraint
Product: [Applications] umbrello Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.16.3 (KDE Applications 15.04.3)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 2.16.80 (KDE Applications 15.7.80)

Description Ralf Habacker 2015-07-17 11:27:47 UTC
It is not possible to delete an entity having a check constraint after a save/load cycle

Reproducible: Always

Steps to Reproduce:
1. start umbrello
2. add entity with check constraint
3. save and reload file
4. delete entity from the tree view

Actual Results:  
A message is printed "The folder must emptied before it can be deleted" and deletion is canceled.


Expected Results:  
The entity should be deleted.

It looks that on load check constraints are added as child objects of the entity instead of appending to UMLEntity::m_List by using addConstraint().
Comment 1 Ralf Habacker 2015-07-17 11:40:34 UTC
Git commit 4d801bcc0916739a7cbe10a7296d4526106c6937 by Ralf Habacker.
Committed on 17/07/2015 at 11:40.
Pushed by habacker into branch 'master'.

Fix 'Impossible to delete entity with check constraint'.
FIXED-IN:2.16.80 (KDE Applications 15.7.80)

M  +1    -1    umbrello/umlobject.cpp

http://commits.kde.org/umbrello/4d801bcc0916739a7cbe10a7296d4526106c6937