Verified Commit 7bb60ebf authored by Marco Rebhan's avatar Marco Rebhan
Browse files

Replace removed insertEmail with addEmail

(see KContacts commit 779da83bcfa42ddc55a17a039e2d9ae9370266d0)
parent 24996756
Pipeline #91043 failed with stage
in 5 minutes and 40 seconds
......@@ -36,6 +36,7 @@
#include <KMessageBox>
#include <QPointer>
#include <QTreeView>
#include <kcontacts_version.h>
using namespace IncidenceEditorNG;
......@@ -448,7 +449,11 @@ void IncidenceAttendee::slotSelectAddresses()
} else {
KContacts::Addressee contact;
contact.setName(selection.name());
#if KContacts_VERSION < QT_VERSION_CHECK(5, 88, 0)
contact.insertEmail(selection.email());
#else
contact.addEmail(KContacts::Email(selection.email()));
#endif
if (selection.item().hasPayload<KContacts::Addressee>()) {
contact.setUid(selection.item().payload<KContacts::Addressee>().uid());
......
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