X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FContactDataObject.cpp;h=854cb56c159635d27244f7ef6486b5ed037b92da;hb=cbb594a87fa3bf6d8511d637f8a390f0e9edc9ea;hp=f811e6116996f7b8e0ae8e55dc715be04b32ab00;hpb=c3caab2c7ab2b4256304e4d1687cf8d15394f31d;p=xestiaab%2F.git diff --git a/source/contacteditor/ContactDataObject.cpp b/source/contacteditor/ContactDataObject.cpp index f811e61..854cb56 100644 --- a/source/contacteditor/ContactDataObject.cpp +++ b/source/contacteditor/ContactDataObject.cpp @@ -35,8 +35,17 @@ ContactLoadStatus ContactDataObject::LoadFile(wxString Filename){ } // Check that the vCard is a valid vCard 4.0 file. + + + vCard vCard4FormatCheck; + + vCard4FormatCheck.LoadFile(Filename); + if (vCard4FormatCheck.Get("VERSION") != wxT("4.0")){ + return CONTACTLOAD_FILEINVALIDFORMAT; + + } return CONTACTLOAD_UNITTESTFAIL;