Commit 5d4950eb 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 8d83f00e
Pipeline #211397 passed with stage
in 5 minutes and 7 seconds
......@@ -298,12 +298,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