Fixed a minor bug in hotKey handling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -500,8 +500,11 @@ void wxMenuItem::SetName( const wxString& str )
|
|||||||
/* only GTK 1.2 know about hot keys */
|
/* only GTK 1.2 know about hot keys */
|
||||||
m_hotKey = _T("");
|
m_hotKey = _T("");
|
||||||
#if (GTK_MINOR_VERSION > 0)
|
#if (GTK_MINOR_VERSION > 0)
|
||||||
pc++;
|
if(*pc == _T('\t'))
|
||||||
m_hotKey = pc;
|
{
|
||||||
|
pc++;
|
||||||
|
m_hotKey = pc;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (m_menuItem)
|
if (m_menuItem)
|
||||||
|
@@ -500,8 +500,11 @@ void wxMenuItem::SetName( const wxString& str )
|
|||||||
/* only GTK 1.2 know about hot keys */
|
/* only GTK 1.2 know about hot keys */
|
||||||
m_hotKey = _T("");
|
m_hotKey = _T("");
|
||||||
#if (GTK_MINOR_VERSION > 0)
|
#if (GTK_MINOR_VERSION > 0)
|
||||||
pc++;
|
if(*pc == _T('\t'))
|
||||||
m_hotKey = pc;
|
{
|
||||||
|
pc++;
|
||||||
|
m_hotKey = pc;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (m_menuItem)
|
if (m_menuItem)
|
||||||
|
Reference in New Issue
Block a user