Commit a6cebee3 authored by Laurent Montel's avatar Laurent Montel
Browse files

Fix bug 462492 Identity with CC Addresses starts composer without To: field

FIXED-IN: 5.22.0
BUG: 462492
parent 2964b308
Pipeline #282636 skipped
......@@ -234,12 +234,7 @@ void RecipientsEditor::slotLineAdded(MultiplyingLine *line)
if (count > 0) {
if (count == 1) {
auto last_rec = qobject_cast<RecipientLineNG *>(lines().constFirst());
if (last_rec && (last_rec->recipientType() == Recipient::Bcc || last_rec->recipientType() == Recipient::ReplyTo)) {
rec->setRecipientType(Recipient::To);
} else {
rec->setRecipientType(Recipient::Cc);
}
rec->setRecipientType(Recipient::To);
} else {
auto last_rec = qobject_cast<RecipientLineNG *>(lines().at(lines().count() - 2));
if (last_rec) {
......
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