GNOME Bugzilla – Bug 543593
Reading a note triggers a save
Last modified: 2009-04-23 02:14:01 UTC
Getting a notes XML (via GetCompleteNoteXml) triggers a save. This is because the current implementation just returns the contents of the note file, and the file might not exist if this is a new note. See GetCompleteNoteXml in Note.cs My proposed fix is to implement a method in NoteArchiver that can return a string (instead of returning a file), so that the file system isn't involved at all. GetCompleteNoteXml can use this, and so doesn't need to worry about when the note was last saved any more. I have a patch to this effect which i'll attach when i have tested it some more.
Created attachment 114773 [details] [review] Proposed fix Implement proposed fix
This patch looks great. How thoroughly did you test it? Bumping priority to high.
Not thoroughly enough i'm afraid.. I've not hit any regressions, but i've hardly used it.
Works for me. Committed in r2140.