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:
parent
d9904e2f43
commit
d7dbc98ae9
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user