]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/forty/playerdg.cpp
Some doc corrections (added blank lines at end of docs); corrected Forty sample
[wxWidgets.git] / samples / forty / playerdg.cpp
index 2b221ecd4abf711eaef416e0efbcf496648690af..fa3ea03d046635a980e8bb183a87e0f594a8fe4c 100644 (file)
@@ -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);
        }
 }