X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3502e687e29f46c747be16a58d39fe79e7b1c7bc..29ea4a290850e9ae79c258774fa22153a951ff7f:/samples/forty/playerdg.cpp diff --git a/samples/forty/playerdg.cpp b/samples/forty/playerdg.cpp index 2b221ecd4a..fa3ea03d04 100644 --- a/samples/forty/playerdg.cpp +++ b/samples/forty/playerdg.cpp @@ -172,17 +172,17 @@ void PlayerSelectionDialog::ButtonCallback(wxCommandEvent& event) else { m_player = name; - Show(FALSE); + EndModal(wxID_OK); } } else { - wxMessageBox("Please enter your name", "Forty Thieves"); + wxMessageBox("Please enter your name", "Forty Thieves"); } } else { m_player = ""; - Show(FALSE); + EndModal(wxID_CANCEL); } }