
13 Nov
2007
13 Nov
'07
3:45 p.m.
On Tue, 13 Nov 2007 15:11:04 -0000, Maximilian Albert <Anhalter42@...173...> wrote:
But any ideas how to find out whether the document returned to a previously saved state by "bypassing" undo, i.e. via real modifications to the document? (Maybe it wouldn't be hard to implement a kind of checksum for the xml tree; but that's probably overkill).
Perhaps it seems overkill but wouldn't doing, say, an MD5 hash of the tree at file-open and another at file close (to decide if the "Save now" dialog is shown or not) simplify things overall? Nothing would ever need to be marked dirty and things like grid visibility/invisibility pairs would be handled for free.
Just a thought.
Thomas