Changeset View
Changeset View
Standalone View
Standalone View
kcalutils/incidenceformatter.cpp
Show First 20 Lines • Show All 3,042 Lines • ▼ Show 20 Lines | if (incBase && helper->calendar()) { | ||||
if (!incidenceOwnedByMe(helper->calendar(), existingIncidence)) { | if (!incidenceOwnedByMe(helper->calendar(), existingIncidence)) { | ||||
existingIncidence.clear(); | existingIncidence.clear(); | ||||
} | } | ||||
if (!existingIncidence) { | if (!existingIncidence) { | ||||
const Incidence::List list = helper->calendar()->incidences(); | const Incidence::List list = helper->calendar()->incidences(); | ||||
for (Incidence::List::ConstIterator it = list.begin(), end = list.end(); it != end; ++it) { | for (Incidence::List::ConstIterator it = list.begin(), end = list.end(); it != end; ++it) { | ||||
if ((*it)->schedulingID() == incBase->uid() && | if ((*it)->schedulingID() == incBase->uid() && | ||||
incidenceOwnedByMe(helper->calendar(), *it)) { | incidenceOwnedByMe(helper->calendar(), *it) && | ||||
(*it)->recurrenceId() == incBase->recurrenceId()) { | |||||
existingIncidence = *it; | existingIncidence = *it; | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
Incidence::Ptr inc = incBase.staticCast<Incidence>(); // the incidence in the invitation email | Incidence::Ptr inc = incBase.staticCast<Incidence>(); // the incidence in the invitation email | ||||
▲ Show 20 Lines • Show All 1,550 Lines • Show Last 20 Lines |