X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2Fcontacteditor%2FContactDataObject.cpp;h=854cb56c159635d27244f7ef6486b5ed037b92da;hp=f811e6116996f7b8e0ae8e55dc715be04b32ab00;hb=cbb594a87fa3bf6d8511d637f8a390f0e9edc9ea;hpb=6560c043b039251e21a79bebea48e11053c88948 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;