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.
wxStringTokenizer wSTFilename(wxSContactFilename, wxT("/"));
#endif
-
+
XABPreferences PrefData(PrefDir);
wxString AccountType;