Commit 957ea520 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 81b807ba
......@@ -42,11 +42,12 @@ void PotentialPhishingEmailJob::setPotentialPhishingEmails(const QStringList &li
{
QString str;
for (int i = 0; i < list.count(); i++) {
if (!list.at(i).trimmed().isEmpty()) {
QString tmpStr = list.at(i);
if (!tmpStr.trimmed().isEmpty()) {
if (!str.isEmpty()) {
str.append(QStringLiteral(", "));
}
str.append(list.at(i));
str.append(tmpStr);
}
}
const QStringList emails = KEmailAddress::splitAddressList(str);
......
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