[gnote] '-' in note title was mistakenly doubled in the menu. (Closes #581643)



commit a9d02407233977c4029bdcfe5abd2f0d73901504
Author: Hubert Figuiere <hub figuiere net>
Date:   Thu May 7 20:49:35 2009 -0400

    '-' in note title was mistakenly doubled in the menu. (Closes #581643)
---
 NEWS         |    1 +
 src/tray.cpp |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/NEWS b/NEWS
index 81e1e94..b6530d4 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Fixes:
     (Robert Millan)
   * Fix build with LDFLAGS="-Wl,--as-needed" (Closes #581559)
     (Priit Laes)
+  * '-' in note title was mistakenly doubled in the menu. (Closes #581643)
   
 
 Translations:
diff --git a/src/tray.cpp b/src/tray.cpp
index b972df7..1aacdc7 100644
--- a/src/tray.cpp
+++ b/src/tray.cpp
@@ -156,7 +156,7 @@ namespace gnote {
   {
     // Replace underscores ("_") with double-underscores ("__")
     // so Note menuitems are not created with mnemonics.
-    return sharp::string_replace_all(name, "-", "--");
+    return sharp::string_replace_all(name, "_", "__");
   }
 
 



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