[gnote] * The open state of notes is now saved properly.



commit 0363f38db18897811989785bf2a1949c3ec39d37
Author: Hubert Figuiere <hub figuiere net>
Date:   Wed Apr 22 16:01:11 2009 -0400

      * The open state of notes is now saved properly.
---
 NEWS         |    1 +
 src/note.cpp |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/NEWS b/NEWS
index f34acb4..0300048 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,7 @@ Fixes:
   * Properly check for libxml2.
   * Drag and drop of notes to a notebook (Close #579637)
   * Fixed hang when changing the title of a note (Close #579362)
+  * The open state of notes is now saved properly.
 
 Translations:
 
diff --git a/src/note.cpp b/src/note.cpp
index ee18d19..6a9b736 100644
--- a/src/note.cpp
+++ b/src/note.cpp
@@ -1286,7 +1286,7 @@ namespace gnote {
     }
 
     xml.write_start_element("", "open-on-startup", "");
-    xml.write_string(boost::lexical_cast<std::string>(note.is_open_on_startup()));
+    xml.write_string(note.is_open_on_startup() ? "True" : "False");
     xml.write_end_element();
 
     xml.write_end_element(); // Note



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]