Commit 203a11f6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix logic

parent 107f91f1
......@@ -129,7 +129,7 @@ void ComposerViewBase::setMessage(const KMime::Message::Ptr &msg, bool allowDecr
if (auto hrd = m_msg->headerByType("X-KMail-UnExpanded-To")) {
const QStringList spl = hrd->asUnicodeString().split(QLatin1Char(','));
for (const QString &addr : spl) {
if (!m_recipientsEditor->addRecipient(addr, MessageComposer::Recipient::To)) {
if (m_recipientsEditor->addRecipient(addr, MessageComposer::Recipient::To)) {
resultTooManyRecipients = true;
qCWarning(MESSAGECOMPOSER_LOG) << "Impossible to add recipient.";
break;
......
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