Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi/akonadimessaging.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 54 | { | |||
---|---|---|---|---|---|
62 | 62 | | |||
63 | KIdentityManagement::IdentityManager identities(true); | 63 | KIdentityManagement::IdentityManager identities(true); | ||
64 | auto emails = QStringList(); | 64 | auto emails = QStringList(); | ||
65 | std::transform(identities.begin(), identities.end(), | 65 | std::transform(identities.begin(), identities.end(), | ||
66 | std::back_inserter(emails), | 66 | std::back_inserter(emails), | ||
67 | Utils::mem_fn(&KIdentityManagement::Identity::fullEmailAddr)); | 67 | Utils::mem_fn(&KIdentityManagement::Identity::fullEmailAddr)); | ||
68 | const auto defaultIndex = emails.indexOf(identities.defaultIdentity().fullEmailAddr()); | 68 | const auto defaultIndex = emails.indexOf(identities.defaultIdentity().fullEmailAddr()); | ||
69 | const auto email = QInputDialog::getItem(window, | 69 | const auto email = QInputDialog::getItem(window, | ||
70 | QObject::tr("Choose an identity"), | 70 | i18n("Choose an identity"), | ||
71 | QObject::tr("Choose the identity to use for the groupware message"), | 71 | i18n("Choose the identity to use for the groupware message"), | ||
72 | emails, | 72 | emails, | ||
73 | defaultIndex, | 73 | defaultIndex, | ||
74 | false); | 74 | false); | ||
75 | 75 | | |||
76 | if (!email.isEmpty()) { | 76 | if (!email.isEmpty()) { | ||
77 | todo->setOrganizer(email); | 77 | todo->setOrganizer(email); | ||
78 | m_itip->sendiTIPMessage(KCalCore::iTIPRequest, todo, window); | 78 | m_itip->sendiTIPMessage(KCalCore::iTIPRequest, todo, window); | ||
79 | } | 79 | } | ||
80 | } | 80 | } |