Commit 53d583e4 authored by Volker Krause's avatar Volker Krause
Browse files

Fix build with latest Qt 5.14, QSet::fromList is deprecated there

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D27743
parent 5d79b1d4
......@@ -47,8 +47,15 @@ IndividualMessageQueueJob::IndividualMessageQueueJob(const KIdentityManagement::
void IndividualMessageQueueJob::start()
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
const auto to = addressAttribute().to();
QSet<QString> attendeesTo(to.begin(), to.end());
const auto cc = addressAttribute().cc();
QSet<QString> attendeesCc(cc.begin(), cc.end());
#else
QSet<QString> attendeesTo(QSet<QString>::fromList(addressAttribute().to()));
QSet<QString> attendeesCc(QSet<QString>::fromList(addressAttribute().cc()));
#endif
QStringList attendeesAutoTo, attendeesAutoCc;
for (const KCalendarCore::Attendee &attendee : qAsConst(mUpdate)) {
......
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