SUMMARY when I try to rename a variable in the Tree View that auto generated by the Composition tool, it create another Association link. STEPS TO REPRODUCE 1. Create two class C1 and C2 and drag them into the class diagram 2. Choose Composition tool from toolbar 3. Drag it from C1 to C2, a new variable will be appear with the default name 4. go to the Tree view and find that variable and rename it. OBSERVED RESULT another association will be create [therefore there is two association] and rename both of them. can be checked in the class Properties/Associations EXPECTED RESULT just rename the existing association variable. SOFTWARE/OS VERSIONS Windows: Win 10 64bit / 1903 macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION I Suggest the default variable name that is generated in the composition association be the target class name that starts with "_". Excuse me for my bad English thanks a lot.
Thanks reportin
(In reply to Ralf Habacker from comment #1) > Thanks reportin sed s,Thanks reportin,thanks for reporting,g'
Created attachment 124969 [details] Screenshot showing what is broken I have attached a screenshot that contains use cases for the visual representation of compositions (and related aggregations). Did I forget anything ?
Created attachment 124970 [details] Screenshot showing what is broken (update)
> 3. Drag it from C1 to C2, a new variable will be appear with the default name In this step the duplicated association is created
Git commit afaca964b8807e4c824b9149bc725a5b5879571a by Ralf Habacker. Committed on 08/01/2020 at 15:43. Pushed by habacker into branch 'release/19.12'. Fix 'Duplicate Composition Association when rename it's variable in the tree View' When connecting two classes by means of a 'composition', a relationship was previously created twice. Once in ToolBarStateAssociation::setSecondWidget() and the second time in UMLWidget::updateWidget(), which is triggered by the 'modified' signal when calling UMLClassifier::addAttribute(). FIXED-IN:2.30.2 (KDE Applications 19.12.2) M +9 -3 umbrello/toolbarstateassociation.cpp https://invent.kde.org/kde/umbrello/commit/afaca964b8807e4c824b9149bc725a5b5879571a
Comment on attachment 124970 [details] Screenshot showing what is broken (update) The attribute change issue is tracked with bug 416006.
Thanks a lot ;)
You may download an umbrello snapshot for Windows with this patch applied from https://umbrello.kde.org/snapshots.php