Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code for viewing vCard data within an unsupported account
[xestiaab/.git] / source / contacteditor / frmContactEditor-Save.cpp
index bf743ee..ffaa5a0 100644 (file)
 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.
     
@@ -2462,7 +2471,7 @@ void frmContactEditor::SaveContact( wxCommandEvent& event )
        wxStringTokenizer wSTFilename(wxSContactFilename, wxT("/"));
     
 #endif
-    
+
        XABPreferences PrefData(PrefDir);
     
        wxString AccountType;
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy