Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clear frmMain when reloading the list of accounts.
[xestiaab/.git]
/
source
/
frmMain.cpp
diff --git
a/source/frmMain.cpp
b/source/frmMain.cpp
index
150e7f9
..
25cb191
100644
(file)
--- 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
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->LoadPreferences();
+ this->ResetContactInfo();
}
}
@@
-488,14
+489,14
@@
void frmMain::OpenNewABDialog( wxCommandEvent& event)
frameNewAccount->ShowModal();
delete frameNewAccount;
frameNewAccount = NULL;
frameNewAccount->ShowModal();
delete frameNewAccount;
frameNewAccount = NULL;
-
+
if (ReloadAccounts == TRUE){
if (ReloadAccounts == TRUE){
-
+
// Reload the accounts as a change has been made within
// the application.
this->LoadPreferences();
// 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);
this->PopupMenu(ContactMenu->MenuPointer(), wxDefaultPosition);
+}
+
+void frmMain::ResetContactInfo(){
+
+ wxString EmptyPage = wxT("");
+ htmContactData->SetPage(EmptyPage);
+ AccCtrl->SetValue("");
+
}
\ No newline at end of file
}
\ No newline at end of file
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy