Commit 2675c55a authored by Volker Krause's avatar Volker Krause
Browse files

Simplify incidence access in dumpAlarm()

This also removes the need for CalendarSupport as a dependency here, as
well as 6 more libraries this pulled in indirectly.
parent 2ffef9e2
Pipeline #106596 passed with stage
in 4 minutes and 46 seconds
......@@ -19,7 +19,7 @@ target_link_libraries(kalendarac
KF5::CalendarCore
KF5::DBusAddons
KF5::AkonadiCore
KF5::CalendarSupport
KF5::AkonadiCalendar
KF5::I18n
KF5::Notifications
Qt5::Core
......
......@@ -6,8 +6,6 @@
#include "kalendaracadaptor.h"
#include "notificationhandler.h"
#include <CalendarSupport/Utils>
#include <KCheckableProxyModel>
#include <KConfigGroup>
#include <KLocalizedString>
......@@ -245,10 +243,7 @@ QStringList KalendarAlarmClient::dumpAlarms() const
} else {
for (const Alarm::Ptr &alarm : alarms) {
const QString uid = alarm->customProperty("ETMCalendar", "parentUid");
const Akonadi::Item::Id id = mCalendar->item(uid).id();
const Akonadi::Item item = mCalendar->item(id);
const Incidence::Ptr incidence = CalendarSupport::incidence(item);
const Incidence::Ptr incidence = mCalendar->incidence(uid);
const QString summary = incidence->summary();
const QDateTime time = incidence->dateTime(Incidence::RoleAlarm);
......
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