Diffstat (limited to 'korganizer/kowhatsnextview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/kowhatsnextview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp index 53fe7d0..8473db9 100644 --- a/korganizer/kowhatsnextview.cpp +++ b/korganizer/kowhatsnextview.cpp @@ -192,2 +192,3 @@ void KOWhatsNextView::updateView() restartTimer(); + mCurrentMaxPrio = 5; //qDebug("KOWhatsNextView::updateView() "); @@ -320,2 +321,3 @@ void KOWhatsNextView::updateView() if (!todo->isCompleted() && (todo->priority() == priority) ) { + mCurrentMaxPrio = priority - priosFound + topmostPrios -1; if ( appendTodo(todo) ) @@ -727,3 +729,3 @@ bool KOWhatsNextView::appendTodo(Incidence *ev, QString ind , bool isSub ) for (to=Relations.first();to;to=Relations.next()) { - if (!((Todo*)to)->isCompleted()) + if (!((Todo*)to)->isCompleted() && ((Todo*)to)->priority() <= mCurrentMaxPrio ) appendTodo( to, ind , true ); |