VCARD: if we loaded the vcard mime from the server don't load it again.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 6 Jul 2013 14:03:39 +0000 (16:03 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 6 Jul 2013 14:03:39 +0000 (16:03 +0200)
Thanks to Stefan for reporting this (again)

webcit/vcard_edit.c

index fee75f3..1a9f11a 100644 (file)
@@ -137,7 +137,8 @@ wc_mime_attachment *load_vcard(message_summary *Msg)
        if (VCMime == NULL)
                return NULL;
 
-       MimeLoadData(VCMime);
+       if (VCMime->Data == NULL)
+               MimeLoadData(VCMime);
        return VCMime;
 }