]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/menu.cpp
Played a little with sockets.
[wxWidgets.git] / src / gtk / menu.cpp
index f5662e116a5ba097fb9e0cc676cefd6b3bf9c897..6907fe1d684178cf59daa4129d6c83f104e2e24d 100644 (file)
@@ -500,8 +500,11 @@ void wxMenuItem::SetName( const wxString& str )
     /* only GTK 1.2 know about hot keys */
     m_hotKey = _T("");
 #if (GTK_MINOR_VERSION > 0)
-    pc++;
-    m_hotKey = pc;
+    if(*pc == _T('\t'))
+    {
+       pc++;
+       m_hotKey = pc;
+    }
 #endif
 
     if (m_menuItem)