X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2FfrmEditAccount.cpp;h=18e5591d144d6f92b630d6fb8bb552934642ee0c;hb=d4087a12e1dccd74c089f2583500578fa5e59212;hp=5313dcd85fc13b807bfb2d38bec52c0163dde32a;hpb=c2e0aabf7318858ae29dcf20fada8cf63e303818;p=xestiaab%2F.git diff --git a/source/frmEditAccount.cpp b/source/frmEditAccount.cpp index 5313dcd..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; @@ -267,32 +270,6 @@ void frmEditAccount::UpdateSettings( wxCommandEvent& event ) cfgfile->DeleteEntry(wxT("refresh"), FALSE); cfgfile->Write(wxT("refresh"), txtRefresh->GetValue()); - /*cfgfile->Read("address", &AccountData); - //txtAddress->SetValue(AccountData); - - cfgfile->Read("port", &AccountData); - //txtPort->SetValue(AccountData); - - cfgfile->Read("username", &AccountData); - //txtUsername->SetValue(AccountData); - - cfgfile->Read("password", &AccountData); - //txtPassword->SetValue(AccountData); - - cfgfile->Read("prefix", &AccountData); - //txtPrefix->SetValue(AccountData); - - cfgfile->Read("ssl", &AccountData); - if (AccountData == wxT("true")){ - - chkSSL->SetValue(TRUE); - - } - - cfgfile->Read("refresh", &AccountData); - //txtRefresh->SetValue(AccountData);*/ - - break; } @@ -302,6 +279,8 @@ void frmEditAccount::UpdateSettings( wxCommandEvent& event ) } + // Set the dialog result to true and close the window. + DialogResult = true; this->Close(); @@ -309,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;