Commit eead28d3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Inform when we can't add new line

parent b2260569
Pipeline #88502 passed with stage
in 43 minutes and 21 seconds
......@@ -121,7 +121,12 @@ void RecipientsEditor::setRecipientString(const QVector<KMime::Types::Mailbox> &
MessageComposer::MessageComposerSettings::self()->maximumRecipients()));
break;
}
addRecipient(mailbox.prettyAddress(KMime::Types::Mailbox::QuoteWhenNecessary), type);
if (!addRecipient(mailbox.prettyAddress(KMime::Types::Mailbox::QuoteWhenNecessary), type)) {
KMessageBox::sorry(
this,
i18nc("@info:status", "Truncating recipients list to %1.", MessageComposer::MessageComposerSettings::self()->maximumRecipients()));
break;
}
}
}
......
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