From 0e6d0bfaf5f1dd2e7aa4fc210160c62658be1458 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 7 Aug 2018 12:59:49 +0200 Subject: Invert the calendar filter so all calendars are enabled by default unless explicitly disabled. --- framework/src/domain/daylongeventmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/src/domain/daylongeventmodel.cpp') diff --git a/framework/src/domain/daylongeventmodel.cpp b/framework/src/domain/daylongeventmodel.cpp index 53b50652..cd26b5c4 100644 --- a/framework/src/domain/daylongeventmodel.cpp +++ b/framework/src/domain/daylongeventmodel.cpp @@ -99,7 +99,7 @@ bool DayLongEventModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourc auto idx = sourceModel()->index(sourceRow, 0, sourceParent); auto event = idx.data(Sink::Store::DomainObjectRole).value(); - if (!mCalendarFilter.contains(event->getCalendar())) { + if (mCalendarFilter.contains(event->getCalendar())) { return false; } -- cgit v1.2.3