Commit 1db83dc6 authored by Laurent Montel's avatar Laurent Montel 😁

Merge remote-tracking branch 'origin/Applications/17.04'

parents 6784d42d bf606b82
......@@ -246,7 +246,16 @@ void AutomaticAddContactsJob::addNextContact()
void AutomaticAddContactsJob::setEmails(const QStringList &list)
{
const QString str = list.join(QStringLiteral(", "));
QString str;
for (int i = 0; i < list.count(); i++) {
QString tmpStr = list.at(i);
if (!tmpStr.trimmed().isEmpty()) {
if (!str.isEmpty()) {
str.append(QStringLiteral(", "));
}
str.append(tmpStr);
}
}
const QStringList emails = KEmailAddress::splitAddressList(str);
mEmails = emails;
}
......
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