Bug 416006

Summary: No association update after changing a class attribute type from class to class pointer or address and vice versa
Product: [Applications] umbrello Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.30.0 (KDE Applications 19.12.0)   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In: 2.30.2 (KDE Applications 19.12.2)

Description Ralf Habacker 2020-01-08 16:01:13 UTC
STEPS TO REPRODUCE
1. start umbrello
2. add two classes a and b
3. select composition in toolbar and connect from class a to class b
4. In the tree view change type of the newly created attribute from 'b' to 'b*' and save

OBSERVED RESULT
The visual representation of the association is still of type composition


EXPECTED RESULT
The visual representation of the association should show an aggregation

SOFTWARE/OS VERSIONS
Linux: openSUSE Leap 15.1
KDE Frameworks Version: 5.59.0
Qt Version: 5.9.7

ADDITIONAL INFORMATION
Removing class b from the diagram and then adding it again indicates the correct association
Comment 1 Ralf Habacker 2020-01-08 16:37:28 UTC
Git commit 5f681444044aa0e3ff175d0684a05575be21e04f by Ralf Habacker.
Committed on 08/01/2020 at 16:37.
Pushed by habacker into branch 'release/19.12'.

Fix 'No association update after changing a class attribute type from class to class pointer or address and vice versa'

In case a corresponding association widget already exists, update
the type to fix the error.
FIXED-IN:2.30.2 (KDE Applications 19.12.2)

M  +8    -9    umbrello/umlscene.cpp

https://invent.kde.org/kde/umbrello/commit/5f681444044aa0e3ff175d0684a05575be21e04f