From 9d218d1a9ec4512d8b4edad402b2159cfc442ae0 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 2 Aug 2015 20:03:06 +0100 Subject: [PATCH] Removed srand subroutine when saving a contact as it doesn't do anything useful. --- source/contacteditor/frmContactEditor.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source/contacteditor/frmContactEditor.cpp b/source/contacteditor/frmContactEditor.cpp index 8ad025b..0ce77e1 100644 --- a/source/contacteditor/frmContactEditor.cpp +++ b/source/contacteditor/frmContactEditor.cpp @@ -5928,10 +5928,7 @@ void frmContactEditor::SaveContact( wxCommandEvent& event ) ContactData.Add(wxT("UID"), UIDToken, FALSE); - // Generate ETag data for the contact if it does not exist. - // If X-XAB-ETAG-ORIG exists, leave alone and update X-XAB-ETAG. - - srand (time(NULL)); + // End the vCard File. ContactData.Add(wxT("END"), wxT("VCARD"), FALSE); @@ -5951,6 +5948,12 @@ void frmContactEditor::SaveContact( wxCommandEvent& event ) #if defined(__HAIKU__) //preffilename = wxT("noo"); + +#elif defined(__APPLE__) + + PrefDir = GetUserPrefDir(); + + wxStringTokenizer wSTFilename(wxSContactFilename, wxT("/")); #elif defined(__WIN32__) @@ -6625,8 +6628,6 @@ bool frmContactEditor::GetSelectedItem(wxListCtrl *ListCtrlPtr, return TRUE; } - *intSelectedData = ListCtrlPtr->GetItemData(*longSelected); - } void frmContactEditor::DeleteMapDataProcess(int IndexNum, std::map* MapData){ -- 2.39.5