Commit 9e20fa87 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

ETMCalendar: fix double increment in loop counter

parent b9e4d82d
......@@ -354,13 +354,12 @@ void ETMCalendarPrivate::onDataChanged(const QModelIndex &topLeft,
// We only update collections, because items are handled in the filtered model
Q_ASSERT(topLeft.row() <= bottomRight.row());
const int endRow = bottomRight.row();
for (int row = topLeft.row(); row <= endRow; row++) {
for (int row = topLeft.row(); row <= endRow; ++row) {
const Akonadi::Collection col = collectionFromIndex(topLeft.sibling(row, 0));
if (col.isValid()) {
// Attributes might have changed, store the new collection and discard the old one
mCollectionMap.insert(, col);
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