Commit 00e1baa5 authored by blam's avatar blam

Merge branch 'jb48429-empty-name' into 'master'

[buteo-sync-plugin-carddav] Fix handling of empty contact name. JB#48429

See merge request mer-core/buteo-sync-plugin-carddav!25
parents 1d457080 323e63d6
...@@ -370,9 +370,10 @@ void CardDavVCardConverter::contactProcessed(const QContact &c, QVersitDocument ...@@ -370,9 +370,10 @@ void CardDavVCardConverter::contactProcessed(const QContact &c, QVersitDocument
// then just assume that the display label is a useful first name. // then just assume that the display label is a useful first name.
name.setFirstName(displaylabel); name.setFirstName(displaylabel);
} }
QString nvalue = QStringLiteral("%1;%2;;;").arg(name.lastName(), name.firstName()); static const QStringList nvalue = { "", "", "", "", "" };
QVersitProperty nProp; QVersitProperty nProp;
nProp.setName("N"); nProp.setName("N");
nProp.setValueType(QVersitProperty::CompoundType);
nProp.setValue(nvalue); nProp.setValue(nvalue);
d->addProperty(nProp); d->addProperty(nProp);
} }
......
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