summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--calendarsource.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/calendarsource.cpp b/calendarsource.cpp
index 8c3ad34..8a395db 100644
--- a/calendarsource.cpp
+++ b/calendarsource.cpp
@@ -94,11 +94,11 @@ QList<CalendarEvent> CalendarSource::fetchEvents(const QDate &start, const QDate
bool startInclusive, bool endInclusive)
{
Q_D(CalendarSource);
- int count = 0;
- count += d->calendarStorage->loadRecurringIncidences();
+ int count;
+ count = d->calendarStorage->loadRecurringIncidences();
qCDebug(calendarSourceCat) << "Loaded" << count << "recurring events";
- count += d->calendarStorage->load(start, end);
- qCDebug(calendarSourceCat) << "Loaded" << count << "events total";
+ count = d->calendarStorage->load(start, end);
+ qCDebug(calendarSourceCat) << "Loaded" << count << "normal events";
QList<CalendarEvent> events;
QVector<mKCal::ExtendedCalendar::ExpandedIncidence> incidences = d->calendar->rawExpandedEvents(start, end, startInclusive, endInclusive);