File r893466.diff of Package kdepim4

Subject: korganizer: make do not show to-dos in monthview work
From: wstephenson@suse.de
Bug: 
Patch-upstream: 893466
--- korganizer/views/monthview/monthview.cpp	(revision 893465)
+++ korganizer/views/monthview/monthview.cpp	(revision 893466)
@@ -281,6 +281,10 @@ void MonthView::reloadIncidences()
   Incidence::List incidences = calendar()->incidences();
 
   foreach ( Incidence *incidence, incidences ) {
+    if ( incidence->type() == "Todo" && !KOPrefs::instance()->showAllDayTodo() ) {
+      continue;
+    }
+
     // An event could start before the currently displayed date, so we
     // have to check at least those dates before the start date, which would
     // cause the event to span into the displayed date range.
Index: korganizer/views/monthview/monthview.cpp
===================================================================
openSUSE Build Service is sponsored by