Commit 2b687ee4 authored by Damien Caliste's avatar Damien Caliste

[nemo-qml-plugin-calendar] Don't create structures to trash it later.

parent 694e8cce
......@@ -820,9 +820,8 @@ void CalendarWorker::loadData(const QList<CalendarData::Range> &ranges,
continue;
}
CalendarData::Event event = createEventStruct(e, notebook);
if (!mSentEvents.contains(event.uniqueId, event.recurrenceId)) {
if (!mSentEvents.contains(e->uid(), e->recurrenceId())) {
CalendarData::Event event = createEventStruct(e, notebook);
mSentEvents.insert(event.uniqueId, event.recurrenceId);
events.insert(event.uniqueId, event);
if (event.allDay)
......
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