Commit d3d095cb authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Views now auto update on adding or removing calendar sources

parent 108b5963
Pipeline #96512 passed with stage
in 5 minutes and 46 seconds
......@@ -100,6 +100,8 @@ void IncidenceOccurrenceModel::updateQuery()
QObject::connect(m_coreCalendar->model(), &QAbstractItemModel::rowsRemoved, this, &IncidenceOccurrenceModel::refreshView);
QObject::connect(m_coreCalendar->model(), &QAbstractItemModel::modelReset, this, &IncidenceOccurrenceModel::refreshView);
QObject::connect(m_coreCalendar, &Akonadi::ETMCalendar::collectionsAdded, this, &IncidenceOccurrenceModel::refreshView);
QObject::connect(m_coreCalendar, &Akonadi::ETMCalendar::collectionsRemoved, this, &IncidenceOccurrenceModel::refreshView);
refreshView();
}
......
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