Skip to content

Commit

Permalink
Unregister MemoryCalendar as an observer when deleting an incidence.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaliste committed Jan 8, 2021
1 parent d2a82ea commit 8198fad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/memorycalendar.cpp
Expand Up @@ -216,6 +216,7 @@ bool MemoryCalendar::deleteIncidence(const Incidence::Ptr &incidence)
// Notify while the incidence is still available,
// this is necessary so korganizer still has time to query for exceptions
notifyIncidenceAboutToBeDeleted(incidence);
incidence->unRegisterObserver(this);
const Incidence::IncidenceType type = incidence->type();
const QString &uid = incidence->uid();
bool deleted = d->deleteIncidence(uid, type, incidence->recurrenceId());
Expand Down

0 comments on commit 8198fad

Please sign in to comment.