From c211ec34be19d63ae6b3bc05051e918eb05ff42d Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 6 Mar 2016 23:17:01 +0000 Subject: [PATCH] Added comments to functions for frmEditAccount Comments added for: frmEditAccount::DetectAddressBook frmEditAccount::LoadPointers frmEditAccount::LoadSettings frmEditAccount::UpdateSettings frmEditAccount::GetDialogResult --- source/frmEditAccount.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/source/frmEditAccount.cpp b/source/frmEditAccount.cpp index 8e53f99..18e5591 100644 --- a/source/frmEditAccount.cpp +++ b/source/frmEditAccount.cpp @@ -92,7 +92,7 @@ void frmEditAccount::DetectAddressBook( wxCommandEvent& event ) if (sslcode == CURLE_OK){ - + // Certificate is okay. Do nothing. } else if (sslcode == CURLE_SSL_CACERT || sslcode == CURLE_SSL_CONNECT_ERROR){ @@ -156,13 +156,16 @@ void frmEditAccount::DetectAddressBook( wxCommandEvent& event ) void frmEditAccount::LoadPointers( wxFileConfig* cfgin ){ + // Setup the account configuration file pointer. + cfgfile = cfgin; } void frmEditAccount::LoadSettings( wxString AccNameIn ){ - // Get the data from the accounts settings file. + // Get the data from the accounts settings file and + // fill in the account fields. AccName = AccNameIn; long itemindex = 0; @@ -276,6 +279,8 @@ void frmEditAccount::UpdateSettings( wxCommandEvent& event ) } + // Set the dialog result to true and close the window. + DialogResult = true; this->Close(); @@ -283,11 +288,17 @@ void frmEditAccount::UpdateSettings( wxCommandEvent& event ) void frmEditAccount::CloseWindow( wxCommandEvent& event ) { + + // Set the dialog result to false and close the window. + DialogResult = false; this->Close(); + } bool frmEditAccount::GetDialogResult(){ + + // Get the result of the dialog. return DialogResult; -- 2.39.5