diff options
Diffstat (limited to 'src/base_tab/AppendGameDialog.cpp')
| -rw-r--r-- | src/base_tab/AppendGameDialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base_tab/AppendGameDialog.cpp b/src/base_tab/AppendGameDialog.cpp index d8fe996..a4ac126 100644 --- a/src/base_tab/AppendGameDialog.cpp +++ b/src/base_tab/AppendGameDialog.cpp @@ -17,8 +17,11 @@ AppendGameDialog::AppendGameDialog(wxWindow *parent, GameBase *base) ID_DIALOG_CANCEL_BUTTON); Bind(wxEVT_BUTTON, &AppendGameDialog::OnImport, this, ID_DIALOG_IMPORT_BUTTON); + Bind(wxEVT_CLOSE_WINDOW, &AppendGameDialog::OnClose, this); } +void AppendGameDialog::OnClose(wxCloseEvent &e) { Destroy(); } + void AppendGameDialog::OnCancel(wxCommandEvent &event) { this->Close(); } void AppendGameDialog::OnImport(wxCommandEvent &event) { |
