Commit 6ce7b5ce authored by Volker Krause's avatar Volker Krause
Browse files

Use Alarm::parentUid instead of the ETM specific custom property hack

Made possible and neccessary by akonadi-calendar!10.
parent e56c71fb
Pipeline #108398 passed with stage
in 1 minute and 55 seconds
......@@ -48,7 +48,7 @@ set(IDENTITYMANAGEMENT_LIB_VERSION "5.19.40")
set(KLDAP_LIB_VERSION "5.19.40")
set(KMAILTRANSPORT_LIB_VERSION "5.19.40")
set(CALENDARUTILS_LIB_VERSION "5.19.40")
set(AKONADICALENDAR_LIB_VERSION "5.19.40")
set(AKONADICALENDAR_LIB_VERSION "5.19.41")
set(KONTACTINTERFACE_LIB_VERSION "5.19.40")
set(KMIME_LIB_VERSION "5.19.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.19.40")
......
......@@ -194,7 +194,7 @@ void KOAlarmClient::checkAlarms()
const Alarm::List alarms = mCalendar->alarms(from, mLastChecked, true /* exclude blocked alarms */);
for (const Alarm::Ptr &alarm : alarms) {
const QString uid = alarm->customProperty("ETMCalendar", "parentUid");
const QString uid = alarm->parentUid();
const Akonadi::Item::Id id = mCalendar->item(uid).id();
const Akonadi::Item item = mCalendar->item(id);
......@@ -294,7 +294,7 @@ QStringList KOAlarmClient::dumpAlarms() const
lst << QStringLiteral("No alarm found.");
} else {
for (const Alarm::Ptr &alarm : alarms) {
const QString uid = alarm->customProperty("ETMCalendar", "parentUid");
const QString uid = alarm->parentUid();
const Akonadi::Item::Id id = mCalendar->item(uid).id();
const Akonadi::Item item = mCalendar->item(id);
......
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