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
Added code for viewing vCard data within an unsupported account
[xestiaab/.git]
/
source
/
contacteditor
/
frmContactEditor-Save.cpp
diff --git
a/source/contacteditor/frmContactEditor-Save.cpp
b/source/contacteditor/frmContactEditor-Save.cpp
index
bf743ee
..
ffaa5a0
100644
(file)
--- a/
source/contacteditor/frmContactEditor-Save.cpp
+++ b/
source/contacteditor/frmContactEditor-Save.cpp
@@
-29,6
+29,15
@@
void frmContactEditor::SaveContact( wxCommandEvent& event )
{
void frmContactEditor::SaveContact( wxCommandEvent& event )
{
+ // Do not save if the account is an unsupported account.
+
+ if (boolUnsupportedAccount == true){
+
+ wxMessageBox(_("Cannot make changes to a contact from an unsupported account type."), _("Unsupported account"), wxICON_ERROR);
+ return;
+
+ }
+
// Check if Display As combo box has a value in it.
// Do not go any further if there is no value.
// Check if Display As combo box has a value in it.
// Do not go any further if there is no value.
@@
-2462,7
+2471,7
@@
void frmContactEditor::SaveContact( wxCommandEvent& event )
wxStringTokenizer wSTFilename(wxSContactFilename, wxT("/"));
#endif
wxStringTokenizer wSTFilename(wxSContactFilename, wxT("/"));
#endif
-
+
XABPreferences PrefData(PrefDir);
wxString AccountType;
XABPreferences PrefData(PrefDir);
wxString AccountType;
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy