Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 56d7f5c5 authored by Laurent Montel's avatar Laurent Montel 😁

Allow to select multi emails

parent d42a9633
......@@ -75,13 +75,23 @@ void EmailLineEdit::slotSelectEmail()
std::unique_ptr<Akonadi::EmailAddressSelectionDialog> dlg(
new Akonadi::EmailAddressSelectionDialog(this));
dlg->setWindowTitle(i18n("Select Emails"));
dlg->view()->view()->setSelectionMode(multiSelection() ? QAbstractItemView::MultiSelection : QAbstractItemView::SingleSelection);
if (dlg->exec()) {
QStringList addresses;
const Akonadi::EmailAddressSelection::List lstAddress = dlg->selectedAddresses();
if (!lstAddress.isEmpty()) {
bool firstElement = true;
QString result;
for (const Akonadi::EmailAddressSelection &value : lstAddress) {
if (!firstElement) {
} else {
firstElement = false;
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