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
Version 0.09 release
[xestiaab/.git]
/
source
/
frmPreferences.cpp
diff --git
a/source/frmPreferences.cpp
b/source/frmPreferences.cpp
index
9124004
..
01a4656
100644
(file)
--- a/
source/frmPreferences.cpp
+++ b/
source/frmPreferences.cpp
@@
-127,16
+127,24
@@
void frmPreferences::ModifyABAccount( wxCommandEvent& event )
frameEditAccount->LoadSettings(AccName);
frameEditAccount->ShowModal();
frameEditAccount->LoadSettings(AccName);
frameEditAccount->ShowModal();
+ bool DialogResult = frameEditAccount->GetDialogResult();
+
delete frameEditAccount;
frameEditAccount = NULL;
delete cfgfile;
cfgfile = NULL;
delete frameEditAccount;
frameEditAccount = NULL;
delete cfgfile;
cfgfile = NULL;
+ if (DialogResult == false){
+ return;
+ }
+
// Reload the account list in the preferences window.
ReloadAccounts();
*ReloadAccountConfig = TRUE;
// Reload the account list in the preferences window.
ReloadAccounts();
*ReloadAccountConfig = TRUE;
-
+ btnAccountModify->Enable(FALSE);
+ btnAccountDelete->Enable(FALSE);
+
}
void frmPreferences::DeleteABAccount( wxCommandEvent& event )
}
void frmPreferences::DeleteABAccount( wxCommandEvent& event )
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy