Ticket #103 (closed defect: fixed)

Opened 5 months ago

Last modified 5 months ago

CommentLine does not disconnect

Reported by: arj..@yirdis.nl Assigned to: arj..@yirdis.nl
Priority: critical Milestone: Gaphor 0.13.0
Component: Gaphor Version:
Keywords: Cc:

Description

The connect/disconnect code for CommentLine seems broken:

  • Create a Class, a Comment and connect them
  • Try to delete the comment line item, this will result in an error

Also some tests need to be done to figure out how the comment line is reacting when it's connected to a line-like element (such as Generalization). In that case the comment line should disconnect when the line looses it's subject, as the semantic relationship no longer exists on model level.

Attachments

Change History

02/24/08 23:20:06 changed by arj..@yirdis.nl

  • summary changed from !CommentLine does not disconnect to CommentLine does not disconnect.

02/26/08 23:24:10 changed by arj..@yirdis.nl

  • status changed from new to closed.
  • resolution set to fixed.

The problem was that diagramtab toke control of disposing model elements before the canvas items were destroyed. This is not good (diagramtab shouldn;t care about such things at all!).

It's fixed by adding a sanitizer service. Here we can implement more functionality that's required to keep model and diagram in sync.

See [2225]


Add/Change #103 (CommentLine does not disconnect)




Action