From 4634d3047f33a6bd5862dd47e1c4ac892dd2c65d Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 8 Nov 2015 15:16:44 +0000 Subject: [PATCH] Cancel button on the Preferences form now works. --- source/frmPreferences.cpp | 6 ++++++ source/frmPreferences.h | 1 + 2 files changed, 7 insertions(+) diff --git a/source/frmPreferences.cpp b/source/frmPreferences.cpp index 8c3149e..b79f888 100644 --- a/source/frmPreferences.cpp +++ b/source/frmPreferences.cpp @@ -397,4 +397,10 @@ void frmPreferences::SavePreferences(wxCommandEvent &event){ this->Close(); +} + +void frmPreferences::CloseWindow(wxCommandEvent &event){ + + this->Close(); + } \ No newline at end of file diff --git a/source/frmPreferences.h b/source/frmPreferences.h index a563667..96100dd 100644 --- a/source/frmPreferences.h +++ b/source/frmPreferences.h @@ -22,6 +22,7 @@ class frmPreferences : public frmPreferencesADT void ModifyABAccount( wxCommandEvent& event ); void SavePreferences( wxCommandEvent &event ); void AddABAccount( wxCommandEvent &event ); + void CloseWindow( wxCommandEvent &event ); private: void ReloadAccounts(); wxImageList *AccImgList = new wxImageList(16,16,true,wxIMAGE_LIST_SMALL); -- 2.39.5