Commit b8ab0b44 authored by Jonathan Marten's avatar Jonathan Marten Committed by Daniel Vrátil
Browse files

RecipientsPicker: Only list recipients with an email address

There is no point in showing those without one.

Also fix the setting of the To/Bcc default buttons to correspond
with the button labels and actions.
parent b32ed13a
Pipeline #33383 passed with stage
in 54 minutes and 54 seconds
......@@ -37,7 +37,7 @@ RecipientsPicker::RecipientsPicker(QWidget *parent)
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mView = new Akonadi::RecipientsPickerWidget(false, nullptr, this);
mView = new Akonadi::RecipientsPickerWidget(true, nullptr, this);
mainLayout->setStretchFactor(mView, 1);
......@@ -107,9 +107,9 @@ void RecipientsPicker::setRecipients(const Recipient::List &)
void RecipientsPicker::setDefaultType(Recipient::Type type)
mDefaultType = type;
mUser1Button->setDefault(type == Recipient::To);
mUser1Button->setDefault(type == Recipient::Bcc);
mUser2Button->setDefault(type == Recipient::Cc);
mUser3Button->setDefault(type == Recipient::Bcc);
mUser3Button->setDefault(type == Recipient::To);
mUser4Button->setDefault(type == Recipient::ReplyTo);
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