]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/forty/playerdg.cpp
Make it possible to use svn-find-native-eols script without svn checkout.
[wxWidgets.git] / demos / forty / playerdg.cpp
index 7f5effaa325390ef14133bc39427a6af59fc0226..82cf4da6e8c85f0ac02d9b76875cbac4293ec2d0 100644 (file)
@@ -102,7 +102,7 @@ void PlayerSelectionDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
 
 void PlayerSelectionDialog::SelectCallback(wxCommandEvent& event)
 {
-    if (event.GetEventType() == wxEVT_COMMAND_LISTBOX_SELECTED)
+    if (event.GetEventType() == wxEVT_LISTBOX)
     {
 //        if (event.IsSelection())
         m_textField->SetValue(event.GetString());
@@ -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('@')))
             {