| Summary: | automatic generated composition won't be deleted when changing the attributes data type | ||
|---|---|---|---|
| Product: | [Applications] umbrello | Reporter: | savar |
| Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
| Status: | NEEDSINFO WAITINGFORINFO | ||
| Severity: | normal | CC: | ralf.habacker |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | test case | ||
|
Description
savar
2007-06-05 10:24:08 UTC
Do not crash with recent git source anymore. Association is still not removed. After looking into this stuff i found out that there is a problem with the create-auto-associations logic. In bool UMLAttributeDialog::apply() a rename of an attribute type (the referenced class) is applied to the model and widgets. m_pAttribute->setName, setType and other methods emits the UMLObject::modified() signal, which is connected to UMLWidget::updateWidget(), which itself calls UMLScene::createAutoAssociations(). createAutoAssociations() add's an AssociationWidget instance for each class attribute, if the related class widget is displayed. Unfortunally it do not remove outdated associations, which should happens before. Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved. There is a test case missing. Created attachment 186882 [details]
test case
With the appended test the issue is reproducable.
1. load test file with umbrello
2. Double click on the class "new_class"
3. Click Button "Attributes"
4. Select "new_class" and press properties
5. change type to double
The association is still present.
|