]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/forty/playerdg.cpp
Fix a crash in wxExecute() in wxMSW too.
[wxWidgets.git] / demos / forty / playerdg.cpp
index 7f5effaa325390ef14133bc39427a6af59fc0226..b1b1f71e070018c1c24a46e444c4ec48b5feabbd 100644 (file)
@@ -114,7 +114,7 @@ void PlayerSelectionDialog::ButtonCallback(wxCommandEvent& event)
     if (event.GetId() == wxID_OK)
     {
         wxString name = m_textField->GetValue();
-        if (!name.IsNull() && name.Length() > 0)
+        if ( !name.empty() )
         {
             if (name.Contains(wxT('@')))
             {