Commit a81fa62c authored by Laurent Montel's avatar Laurent Montel 😁

Add value

parent 309ea399
......@@ -97,7 +97,7 @@ void CustomIdentifierTest::shouldExportVcard4()
"EMAIL:foo@kde.org\r\n"
"EMAIL:bla@kde.org\r\n"
"N:;;;;\r\n"
"RELATED;TYPE=spouse:;\r\n"
"RELATED;TYPE=spouse;VALUE=foo:;\r\n"
"UID:testuid\r\n"
"END:VCARD\r\n\r\n");
......@@ -114,7 +114,7 @@ void CustomIdentifierTest::shouldExportVcard4()
"EMAIL:foo@kde.org\r\n"
"EMAIL:bla@kde.org\r\n"
"N:;;;;\r\n"
"RELATED;TYPE=spouse:;\r\n"
"RELATED;TYPE=spouse;VALUE=foo:;\r\n"
"UID:testuid\r\n"
"END:VCARD\r\n\r\n");
......
......@@ -608,9 +608,9 @@ QByteArray VCardTool::createVCards(const Addressee::List &list,
}
} else if (identifier.toLower() == QLatin1String("x-kaddressbook-x-spousesname") && version == VCard::v4_0) {
if (!value.isEmpty()) {
VCardLine line( QStringLiteral("RELATED"),QStringLiteral(";"));
VCardLine line( QStringLiteral("RELATED"), QStringLiteral(";"));
line.addParameter(QStringLiteral("TYPE"), QStringLiteral("spouse"));
qDebug()<<" line valid"<<line.value();
line.addParameter(QStringLiteral("VALUE"), value);
card.addLine(line);
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment