tomboy r1879 - in trunk: . Tomboy
- From: btimothy svn gnome org
- To: svn-commits-list gnome org
- Subject: tomboy r1879 - in trunk: . Tomboy
- Date: Fri, 22 Feb 2008 20:51:58 +0000 (GMT)
Author: btimothy
Date: Fri Feb 22 20:51:57 2008
New Revision: 1879
URL: http://svn.gnome.org/viewvc/tomboy?rev=1879&view=rev
Log:
* Tomboy/NoteManager.cs: Use a copy of List<Note> when enumerating the
notes to save in OnExitingEvent. This fixes the crash mentioned in
bug #510442.
Modified:
trunk/ChangeLog
trunk/Tomboy/NoteManager.cs
Modified: trunk/Tomboy/NoteManager.cs
==============================================================================
--- trunk/Tomboy/NoteManager.cs (original)
+++ trunk/Tomboy/NoteManager.cs Fri Feb 22 20:51:57 2008
@@ -248,8 +248,11 @@
}
Logger.Log ("Saving unsaved notes...");
-
- foreach (Note note in notes) {
+
+ // Use a copy of the notes to prevent bug #510442 (crash on exit
+ // when iterating the notes to save them.
+ List<Note> notesCopy = new List<Note> (notes);
+ foreach (Note note in notesCopy) {
// If the note is visible, it will be shown automatically on
// next startup
if (note.HasWindow && note.Window.Visible)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]