X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bcf881efa908bc34f014552dce74a171e2a9a920..0d045709bcd64c28a155a2a9fb29d95f56a0ff7b:/src/gtk/menu.cpp?ds=inline 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;