Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[nemo-qml-plugin-calendar] Don't create structures to trash it later.
  • Loading branch information
dcaliste committed Apr 27, 2021
1 parent 694e8cc commit 2b687ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/calendarworker.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 2b687ee

Please sign in to comment.