X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditor-Save.cpp;h=baeeae54b926b44a9f4f7043910b7ae1192ca70b;hp=901894323fb0f1323c71176bdb96723c75b9eb2b;hb=6b58952dd564656cb93211f78748bb4d03bca0e7;hpb=1fb97c13f1de4f8688129e6828bb1c6379bf636b diff --git a/source/contacteditor/frmContactEditor-Save.cpp b/source/contacteditor/frmContactEditor-Save.cpp index 9018943..baeeae5 100644 --- a/source/contacteditor/frmContactEditor-Save.cpp +++ b/source/contacteditor/frmContactEditor-Save.cpp @@ -50,6 +50,19 @@ void frmContactEditor::SaveContact( wxCommandEvent& event ) } + // Check if a value has been entered either in the Title, + // Forename, Surname, Other Names and Suffix text boxes. + + if (txtTitle->IsEmpty() && txtForename->IsEmpty() && txtSurname->IsEmpty() + && txtOtherNames->IsEmpty() && txtSuffix->IsEmpty()) + { + + wxMessageBox(_("A value must be as minimum eithered in either the Title, Forename, Surname, Other Names or Suffix text boxes."), _("No name information entered"), wxICON_ERROR); + saveSuccess = false; + return; + + } + // Save the updated contact data. //vCard ContactData;