Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added comments to describe functions in frmContactEditorTelephone
[xestiaab/.git] / source / contacteditor / frmContactEditor-Load.cpp
index 90fff1c..92990a9 100644 (file)
@@ -374,17 +374,17 @@ bool frmContactEditor::LoadContact(wxString Filename){
 
        // Process the instant messaging (IMPP).
        
-       LoadData(&ContactEditorData.GeneralIMList,
+       LoadData(&ContactEditorData.GeneralIMListTypeInfo,
                &ContactEditorData.GeneralIMListPref,
-               &ContactEditorData.GeneralIMListTypeInfo,
+               &ContactEditorData.GeneralIMList,
                lboIM,
-               &ContactEditorData.HomeIMList,
-               &ContactEditorData.HomeIMListPref,
                &ContactEditorData.HomeIMListTypeInfo,
+               &ContactEditorData.HomeIMListPref,
+               &ContactEditorData.HomeIMList,
                lboHomeIM,
-               &ContactEditorData.BusinessIMList,
-               &ContactEditorData.BusinessIMListPref,
                &ContactEditorData.BusinessIMListTypeInfo,
+               &ContactEditorData.BusinessIMListPref,
+               &ContactEditorData.BusinessIMList,
                lboBusinessIM,
                &IMPPCount);
 
@@ -1541,6 +1541,10 @@ void frmContactEditor::LoadKind(ContactKindType *KindType){
 
 void frmContactEditor::LoadBirthday(wxString *BirthdayData, bool *BirthdayText){
 
+       if (BirthdayData->IsEmpty()){
+           return;
+       }
+  
        if (*BirthdayText == FALSE){
        
                int DateYear = 0;
@@ -1576,6 +1580,10 @@ void frmContactEditor::LoadBirthday(wxString *BirthdayData, bool *BirthdayText){
 
 void frmContactEditor::LoadAnniversary(wxString *AnniversaryData, bool *AnniversaryText){
 
+       if (AnniversaryData->IsEmpty()){
+           return;
+       }
+  
        if (*AnniversaryText == FALSE){
        
                int DateYear = 0;
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