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();
}
frameNewAccount->ShowModal();
delete frameNewAccount;
frameNewAccount = NULL;
-
+
if (ReloadAccounts == TRUE){
-
+
// Reload the accounts as a change has been made within
// the application.
this->LoadPreferences();
-
+
}
}
this->PopupMenu(ContactMenu->MenuPointer(), wxDefaultPosition);
+}
+
+void frmMain::ResetContactInfo(){
+
+ wxString EmptyPage = wxT("");
+ htmContactData->SetPage(EmptyPage);
+ AccCtrl->SetValue("");
+
}
\ No newline at end of file
int ContactEditorUID = 0;
int WindowMenuItemID = 0;
XABContactMenu *ContactMenu = new XABContactMenu(XABCONTACTMENU_MAIN);
+ void ResetContactInfo();
protected:
// Handlers for frmMainADT events.
void QuitApp( wxCloseEvent& event );