X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditor-General.cpp;h=f02eb83b6eec6c8a7082e19b002a4a17882b9cc3;hb=23776c47694a72b7ae42c3c0f63bd24ab63a3bad;hp=e1be3d58c333aad89da11dbc3a372af24d50c642;hpb=5bce52e6a1c5a222d19c762aeed58aaf2e222672;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditor-General.cpp b/source/contacteditor/frmContactEditor-General.cpp index e1be3d5..f02eb83 100644 --- a/source/contacteditor/frmContactEditor-General.cpp +++ b/source/contacteditor/frmContactEditor-General.cpp @@ -668,13 +668,11 @@ void frmContactEditor::DeleteGeneralRelated( wxCommandEvent& event ) lboRelated->DeleteItem(longSelected); - GeneralRelatedList.erase(intSelectedData); - GeneralRelatedListRelType.erase(intSelectedData); - GeneralRelatedListAltID.erase(intSelectedData); - GeneralRelatedListPID.erase(intSelectedData); - GeneralRelatedListType.erase(intSelectedData); - GeneralRelatedListTokens.erase(intSelectedData); - GeneralRelatedListPref.erase(intSelectedData); + DeleteMapData(intSelectedData, &ContactEditorData.GeneralRelatedList, + &ContactEditorData.GeneralRelatedListRelType, &ContactEditorData.GeneralRelatedListAltID, + &ContactEditorData.GeneralRelatedListPID, &ContactEditorData.GeneralRelatedListType, + &ContactEditorData.GeneralRelatedListTokens, &ContactEditorData.GeneralRelatedListPref); + } void frmContactEditor::AddGeneralWebsite( wxCommandEvent& event )