diff --git a/src/individualmailcomponentfactory.cpp b/src/individualmailcomponentfactory.cpp --- a/src/individualmailcomponentfactory.cpp +++ b/src/individualmailcomponentfactory.cpp @@ -47,8 +47,15 @@ void IndividualMessageQueueJob::start() { +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) + const auto to = addressAttribute().to(); + QSet attendeesTo(to.begin(), to.end()); + const auto cc = addressAttribute().cc(); + QSet attendeesCc(cc.begin(), cc.end()); +#else QSet attendeesTo(QSet::fromList(addressAttribute().to())); QSet attendeesCc(QSet::fromList(addressAttribute().cc())); +#endif QStringList attendeesAutoTo, attendeesAutoCc; for (const KCalendarCore::Attendee &attendee : qAsConst(mUpdate)) {