]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix: don't try to convert wxString to bool, use empty() instead
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Apr 2007 21:38:05 +0000 (21:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Apr 2007 21:38:05 +0000 (21:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk1/menu.cpp

index 32295957b91943d7244744de2d4f96fe0e4f738f..f18d924fdb2918d4f7a7985921ff0e812e5226b7 100644 (file)
@@ -1430,7 +1430,7 @@ static wxString GetGtkHotKey( const wxMenuItem& item )
                 if ( code < 127 )
                 {
                     wxString name = wxGTK_CONV_BACK( gdk_keyval_name((guint)code) );
-                    if ( name )
+                    if ( !name.empty() )
                     {
                         hotkey << name;
                         break;