Commit 4f5f6ba0 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛
Browse files

Problem deleting recurring incidences with dissociated instances

When deleting a recurring incidence, first delete any dissociated instances.
See https://phabricator.kde.org/T14202.
parent 6832bc41
Pipeline #55249 passed with stage
in 11 minutes and 19 seconds
......@@ -597,6 +597,9 @@ bool CalendarBase::deleteIncidence(const KCalendarCore::Incidence::Ptr &incidenc
{
Q_D(CalendarBase);
Q_ASSERT(incidence);
if (!incidence->hasRecurrenceId() && incidence->recurs()) {
deleteIncidenceInstances(incidence);
}
Akonadi::Item item_ = item(incidence->instanceIdentifier());
return -1 != d->mIncidenceChanger->deleteIncidence(item_);
}
......
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