Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Updated DeleteGeneralRelated to use DeleteMapData.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Fri, 1 Jan 2016 14:34:33 +0000 (14:34 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Fri, 1 Jan 2016 14:34:33 +0000 (14:34 +0000)
source/contacteditor/frmContactEditor-General.cpp

index e1be3d5..f02eb83 100644 (file)
@@ -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 )
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