diff --git a/src/versit/qversitcontactexporter_p.cpp b/src/versit/qversitcontactexporter_p.cpp index de9612d..150ef22 100644 --- a/src/versit/qversitcontactexporter_p.cpp +++ b/src/versit/qversitcontactexporter_p.cpp @@ -815,7 +815,7 @@ bool QVersitContactExporterPrivate::encodeContentFromFile(const QString& resourc if (isValidRemoteUrl( resourcePath )) { encodeContent = true; value.setValue(resourcePath); - property.insertParameter(QLatin1String("VALUE"), QLatin1String("URL")); + property.insertParameter(QLatin1String("VALUE"), QLatin1String("uri")); } else if (mResourceHandler && mResourceHandler->loadResource(resourcePath, &imageData, &mimeType)) { value.setValue(imageData); diff --git a/src/versit/qversitcontactimporter_p.cpp b/src/versit/qversitcontactimporter_p.cpp index 9f6c04f..4e9e511 100644 --- a/src/versit/qversitcontactimporter_p.cpp +++ b/src/versit/qversitcontactimporter_p.cpp @@ -852,10 +852,11 @@ bool QVersitContactImporterPrivate::saveDataFromProperty(const QVersitProperty & QByteArray *data) const { bool found = false; - const QString valueParam = property.parameters().value(QLatin1String("VALUE")); + const QString valueParam = property.parameters().value(QLatin1String("VALUE")).toUpper(); QVariant variant(property.variantValue()); if (variant.type() == QVariant::String - || valueParam == QLatin1String("URL")) { + || valueParam == QLatin1String("URL") + || valueParam == QLatin1String("URI")) { *location = property.value(); found |= !location->isEmpty(); } else if (variant.type() == QVariant::ByteArray) {