a way to know if there's changes, it's a flag set to 1 at each call of the function that adds action in the undo list. the set will be set to 0 at each save. when you quit, you have to check the value of the flag. if an action is not present in the undo list, we could say that's not an imortant change and forget it, but i may be wrong. +++