summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2016-08-28 17:54:12 +0200
committerJavier <dev.git@javispedro.com>2016-08-28 17:54:12 +0200
commit2b8000b8f52d667763474f0e69d10b3871145d41 (patch)
treebc3a2d5f1c299bc924bb2f02bbdc5978f962d4d3
parentfa539e0228bb618516372d330b9e57f8f482d422 (diff)
downloadlibwatchfish-2b8000b8f52d667763474f0e69d10b3871145d41.tar.gz
libwatchfish-2b8000b8f52d667763474f0e69d10b3871145d41.zip
slightly change debug output
-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);