From ea191b2c0728f4ed18b3665efe00403dcca926cb Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 24 Feb 2016 17:35:06 +0000 Subject: [PATCH] Set DialogResult when an option is selected and fetch with GetDialogResult --- source/frmEditAccount.cpp | 10 +++++++++- source/frmEditAccount.h | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/source/frmEditAccount.cpp b/source/frmEditAccount.cpp index 35763fb..d2e6b7b 100644 --- a/source/frmEditAccount.cpp +++ b/source/frmEditAccount.cpp @@ -238,12 +238,20 @@ void frmEditAccount::UpdateSettings( wxCommandEvent& event ) ContinueAcc = cfgfile->GetNextGroup(AccountName, itemindex); } - + + DialogResult = true; this->Close(); } void frmEditAccount::CloseWindow( wxCommandEvent& event ) { + DialogResult = false; this->Close(); } + +bool frmEditAccount::GetDialogResult(){ + + return DialogResult; + +} \ No newline at end of file diff --git a/source/frmEditAccount.h b/source/frmEditAccount.h index ab73d34..8448c16 100644 --- a/source/frmEditAccount.h +++ b/source/frmEditAccount.h @@ -42,9 +42,11 @@ class frmEditAccount : public frmEditAccountADT frmEditAccount( wxWindow* parent ); void LoadPointers( wxFileConfig* cfgin ); void LoadSettings( wxString AccNameIn ); + bool GetDialogResult(); private: wxFileConfig *cfgfile; wxString AccName; + bool DialogResult = false; //// end generated class members }; -- 2.39.2