[Uml-devel] When to call setModified(true) ?

Jonathan Riddell jr at jriddell.org
Wed Feb 4 05:14:18 UTC 2004


On Wed, Feb 04, 2004 at 12:22:39PM +0100, Sebastian Stein wrote:
> I'm working on bug #72977. I wonder when I have to call setModified(true).
> Before or after I have modified the document? This might sound stupid, but
> it is important, because by calling setModified() a point for undo/redo is
> created.

After.

You also have to make sure it's only called once, I suspect that
adding an assocaition between two classes calls it twice just now for
example.

Jonathan Riddell




More information about the umbrello-devel mailing list