X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0da0dbabf2d3cf8e1a76a2c82608822d15d0625..30083ad8e7c0eb9ea3dcf4f2588149eeb7fe3e32:/src/gtk/menu.cpp diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 7f4d87855d..78539a50de 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -1547,8 +1547,9 @@ static wxString GetGtkHotKey( const wxMenuItem& item ) default: if ( code < 127 ) { - wxString name = wxGTK_CONV_BACK( gdk_keyval_name((guint)code) ); - if ( name ) + const wxString + name = wxGTK_CONV_BACK_SYS(gdk_keyval_name((guint)code)); + if ( !name.empty() ) { hotkey << name; break;