Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Removed srand subroutine when saving a contact as it doesn't do anything useful.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 2 Aug 2015 19:03:06 +0000 (20:03 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 2 Aug 2015 19:03:06 +0000 (20:03 +0100)
source/contacteditor/frmContactEditor.cpp

index 8ad025b..0ce77e1 100644 (file)
@@ -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<int, std::string>* MapData){
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