Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 09c1f86e authored by Laurent Montel's avatar Laurent Montel 😁

Fix parse gender

parent 6a3edc77
......@@ -144,7 +144,7 @@ class Addressee::Private : public QSharedData
Key::List mKeys;
Email::List mEmails;
Lang::List mLangs;
KABC::Gender mGender;
Gender mGender;
QStringList mCategories;
QMap<QString, QString> mCustomFields;
......
......@@ -609,11 +609,12 @@ Addressee::List VCardTool::parseVCards( const QByteArray &vcard ) const
Gender gender;
if (genderStr.at(0) != QLatin1Char(';')) {
gender.setGender(genderStr.at(0));
//TODO add comment
if (genderStr.length() > 2) {
gender.setComment(genderStr.right(genderStr.length()-2));
}
} else {
gender.setComment(genderStr.right(genderStr.length()-1));
}
//TODO comment
addr.setGender(gender);
}
}
......
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