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());
if (event.GetId() == wxID_OK)
{
wxString name = m_textField->GetValue();
- if (!name.IsNull() && name.Length() > 0)
+ if ( !name.empty() )
{
if (name.Contains(wxT('@')))
{