From: Steve Brokenshire Date: Wed, 24 Feb 2016 17:35:06 +0000 (+0000) Subject: Set DialogResult when an option is selected and fetch with GetDialogResult X-Git-Tag: release-0.09~5 X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=commitdiff_plain;h=ea191b2c0728f4ed18b3665efe00403dcca926cb Set DialogResult when an option is selected and fetch with GetDialogResult --- 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 };