Commit 22fa0adc authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Fix Formatting::prettyEMail

EMailParseResult success is 0 (AddressOk) and addrSpec is the
second parameter and not the first.
parent 41186330
......@@ -203,7 +203,7 @@ QString Formatting::prettyEMail(const char *email_, const char *id)
QString email, name, comment;
if (email_ && KEmailAddress::splitAddress(QString::fromUtf8(email_),
email, name, comment)) {
name, email, comment) == KEmailAddress::AddressOk) {
return email;
} else {
return DN(id)[QStringLiteral("EMAIL")].trimmed();
Supports Markdown
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