From: Steve Brokenshire Date: Sun, 2 Aug 2015 19:03:06 +0000 (+0100) Subject: Removed srand subroutine when saving a contact as it doesn't do anything useful. X-Git-Tag: release-0.05~97 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=9d218d1a9ec4512d8b4edad402b2159cfc442ae0;p=xestiaab%2F.git Removed srand subroutine when saving a contact as it doesn't do anything useful. --- 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){