#include "version.h"
-//extern const wxEventType MyHaremEvent = wxNewEventType();
-
-//#define CE_UPDATECONTACTLIST 7700
-//#define CE_UPDATEACCOUNTLIST 7701
-
DEFINE_EVENT_TYPE(CE_UPDATECONTACTLIST);
DEFINE_EVENT_TYPE(CE_UPDATEACCOUNTLIST);
DEFINE_EVENT_TYPE(SE_UPDATECONTACTNOTIF);
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