tomboy r2038 - in trunk: . Tomboy/Notebooks
- From: sharm svn gnome org
- To: svn-commits-list gnome org
- Subject: tomboy r2038 - in trunk: . Tomboy/Notebooks
- Date: Wed, 23 Jul 2008 23:22:02 +0000 (UTC)
Author: sharm
Date: Wed Jul 23 23:22:02 2008
New Revision: 2038
URL: http://svn.gnome.org/viewvc/tomboy?rev=2038&view=rev
Log:
* Tomboy/Notebooks/NotebookManager.cs: When creating a new notebook,
check that notesToAdd isn't null (as some menu items let you add a
new notebook without any initial notes). Fixes bug #544406.
Modified:
trunk/ChangeLog
trunk/Tomboy/Notebooks/NotebookManager.cs
Modified: trunk/Tomboy/Notebooks/NotebookManager.cs
==============================================================================
--- trunk/Tomboy/Notebooks/NotebookManager.cs (original)
+++ trunk/Tomboy/Notebooks/NotebookManager.cs Wed Jul 23 23:22:02 2008
@@ -325,9 +325,11 @@
} else {
Logger.Debug ("Created the notebook: {0} ({1})", notebook.Name, notebook.NormalizedName);
- // Move all the specified notesToAdd into the new notebook
- foreach (Note note in notesToAdd) {
- NotebookManager.MoveNoteToNotebook (note, notebook);
+ if (notesToAdd != null) {
+ // Move all the specified notesToAdd into the new notebook
+ foreach (Note note in notesToAdd) {
+ NotebookManager.MoveNoteToNotebook (note, notebook);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]