Commit 189ac234 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fixed infrequent crash when completing todos

parent 25ce1608
Pipeline #95865 passed with stage
in 5 minutes and 35 seconds
......@@ -689,7 +689,7 @@ void CalendarManager::editIncidence(IncidenceWrapper *incidenceWrapper)
m_changer->modifyIncidence(modifiedItem, originalPayload);
if (modifiedItem.parentCollection().id() == incidenceWrapper->collectionId()) {
if (!incidenceWrapper->collectionId() || incidenceWrapper->collectionId() < 0 || modifiedItem.parentCollection().id() == incidenceWrapper->collectionId()) {
return;
}
......
......@@ -817,6 +817,7 @@ Kirigami.ApplicationWindow {
this, "incidence");
todo.incidencePtr = incidencePtr;
todo.collectionId = -1;
if(todo.incidenceType === IncidenceWrapper.TypeTodo) {
todo.todoCompleted = !todo.todoCompleted;
......
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