X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2FfrmMain.cpp;h=25cb191ef0f199760ce5c74400dfa0ba008ee914;hb=77b9956953d1e3abb804d6c266c2c64e7b50d9d2;hp=150e7f976c4d5e1d16fae6db882e7c26d36fcd58;hpb=f4990ff8fd11ee3a231e93bd9ce0a1c4851d6ebb;p=xestiaab%2F.git diff --git a/source/frmMain.cpp b/source/frmMain.cpp index 150e7f9..25cb191 100644 --- a/source/frmMain.cpp +++ b/source/frmMain.cpp @@ -464,9 +464,10 @@ void frmMain::OpenPreferences( wxCommandEvent& event) if (ReloadAccounts == TRUE){ // Reload the accounts as a change has been made within - // the application. + // the application and clear the current contact information. this->LoadPreferences(); + this->ResetContactInfo(); } @@ -488,14 +489,14 @@ void frmMain::OpenNewABDialog( wxCommandEvent& event) frameNewAccount->ShowModal(); delete frameNewAccount; frameNewAccount = NULL; - + if (ReloadAccounts == TRUE){ - + // Reload the accounts as a change has been made within // the application. this->LoadPreferences(); - + } } @@ -2820,4 +2821,12 @@ void frmMain::ShowContactMenu( wxMouseEvent& event ){ this->PopupMenu(ContactMenu->MenuPointer(), wxDefaultPosition); +} + +void frmMain::ResetContactInfo(){ + + wxString EmptyPage = wxT(""); + htmContactData->SetPage(EmptyPage); + AccCtrl->SetValue(""); + } \ No newline at end of file