Commit 7b4393d2 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Ensure edit mode sets incidence item too



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent 7f483440
Pipeline #185490 passed with stage
in 4 minutes and 3 seconds
......@@ -648,8 +648,10 @@ void IncidenceWrapper::setTodoPercentComplete(int todoPercentComplete)
void IncidenceWrapper::triggerEditMode() // You edit a clone so that the original ptr isn't messed with
{
auto itemToEdit = item();
KCalendarCore::Incidence::Ptr clonedPtr(m_incidence->clone());
setIncidencePtr(clonedPtr);
itemToEdit.setPayload<KCalendarCore::Incidence::Ptr>(clonedPtr);
setIncidenceItem(itemToEdit);
}
static int nearestQuarterHour(int secsSinceEpoch)
......
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