Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
[kcalcore] Reset internal incidence visibility cache when notebook vi…
Browse files Browse the repository at this point in the history
…sibility changes.
  • Loading branch information
dcaliste committed Mar 5, 2020
1 parent 82b76a7 commit b609d56
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kcalcore/calendar.cpp
Expand Up @@ -463,6 +463,12 @@ bool Calendar::updateNotebook( const QString &notebook, bool isVisible )
return false;
} else {
d->mNotebooks.insert( notebook, isVisible );
const QList<Incidence::Ptr> incidences = d->mNotebookIncidences.values(notebook);
for (Incidence::Ptr incidence : incidences) {
QHash<Incidence::Ptr, bool>::Iterator it = d->mIncidenceVisibility.find(incidence);
if (it != d->mIncidenceVisibility.end())
*it = isVisible;
}
return true;
}
}
Expand Down

0 comments on commit b609d56

Please sign in to comment.