Commit 6f8be46c authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Condense occurrenceForAlarm early returns and add check for null incidence ptr

Besides the clean-up, it might prevent
parent f8c5e4d0
Pipeline #211382 passed with stage
in 3 minutes and 30 seconds
......@@ -308,12 +308,8 @@ void KalendarAlarmClient::saveLastCheckTime()
KalendarAlarmClient::occurrenceForAlarm(const KCalendarCore::Incidence::Ptr &incidence, const KCalendarCore::Alarm::Ptr &alarm, const QDateTime &from) const
if (!incidence->recurs()) {
return {};
// recurring alarms not handled here for simplicity
if (alarm->repeatCount()) {
if (incidence.isNull() || !incidence->recurs() || alarm->repeatCount()) {
return {};
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