Skip to content

Commit

Permalink
[mkcal] Only create alarms for non-canceled incidences. Contributes t…
Browse files Browse the repository at this point in the history
…o JB#42185
  • Loading branch information
Chris Adams committed Mar 19, 2020
1 parent c846281 commit 5a3b96c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/extendedstorage.cpp
Expand Up @@ -727,6 +727,10 @@ void ExtendedStorage::Private::setAlarms(const Incidence::Ptr &incidence,
Timed::Event::List &events,
const KDateTime &now)
{
if (incidence->status() == Incidence::StatusCanceled) {
return;
}

const Alarm::List alarms = incidence->alarms();
foreach (const Alarm::Ptr alarm, alarms) {
if (!alarm->enabled()) {
Expand Down

0 comments on commit 5a3b96c

Please sign in to comment.