summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-04-08 11:56:30 (UTC)
committer zautrix <zautrix>2005-04-08 11:56:30 (UTC)
commitafb896709be49326ca9d9ad1656153cc27a60ffe (patch) (side-by-side diff)
treed9dc3976e60435b4c8116fff596358e97f100996
parentba04f6a4b6b651dcff11ca17103cba42330e52be (diff)
downloadkdepimpi-afb896709be49326ca9d9ad1656153cc27a60ffe.zip
kdepimpi-afb896709be49326ca9d9ad1656153cc27a60ffe.tar.gz
kdepimpi-afb896709be49326ca9d9ad1656153cc27a60ffe.tar.bz2
wn fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kowhatsnextview.cpp4
-rw-r--r--korganizer/kowhatsnextview.h1
2 files changed, 4 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 );
diff --git a/korganizer/kowhatsnextview.h b/korganizer/kowhatsnextview.h
index 715037f..d6727ac 100644
--- a/korganizer/kowhatsnextview.h
+++ b/korganizer/kowhatsnextview.h
@@ -89,2 +89,3 @@ class KOWhatsNextView : public KOrg::BaseView
private:
+ int mCurrentMaxPrio;
//void createEventViewer();