summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heinecke <aheinecke@intevation.de>2016-08-04 09:44:14 (GMT)
committerAndre Heinecke <aheinecke@intevation.de>2016-08-04 09:44:14 (GMT)
commit22fa0adc71b231f686b5e48104ef0c407304199e (patch)
treeafde1f95df1e2a49682cab708d0d094c82ea0e43
parent411863304ce47ea6fbb5a996eb215ac0fa7a42d1 (diff)
Fix Formatting::prettyEMail
EMailParseResult success is 0 (AddressOk) and addrSpec is the second parameter and not the first.
-rw-r--r--src/utils/formatting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/formatting.cpp b/src/utils/formatting.cpp
index dbd8a21..ad01e06 100644
--- a/src/utils/formatting.cpp
+++ b/src/utils/formatting.cpp
@@ -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();