summaryrefslogtreecommitdiffabout
path: root/korganizer/kowhatsnextview.cpp
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 /korganizer/kowhatsnextview.cpp
parentba04f6a4b6b651dcff11ca17103cba42330e52be (diff)
downloadkdepimpi-afb896709be49326ca9d9ad1656153cc27a60ffe.zip
kdepimpi-afb896709be49326ca9d9ad1656153cc27a60ffe.tar.gz
kdepimpi-afb896709be49326ca9d9ad1656153cc27a60ffe.tar.bz2
wn fix
Diffstat (limited to 'korganizer/kowhatsnextview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kowhatsnextview.cpp4
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
@@ -190,6 +190,7 @@ void KOWhatsNextView::updateView()
//qDebug("KOWhatsNextView::updateView() ");
if ( mTimer->isActive() )
restartTimer();
+ mCurrentMaxPrio = 5;
//qDebug("KOWhatsNextView::updateView() ");
// mDateLabel->setText(KGlobal::locale()->formatDate(QDate::currentDate()));
KIconLoader kil("korganizer");
@@ -318,6 +319,7 @@ void KOWhatsNextView::updateView()
todo = todos.first();
while(todo) {
if (!todo->isCompleted() && (todo->priority() == priority) ) {
+ mCurrentMaxPrio = priority - priosFound + topmostPrios -1;
if ( appendTodo(todo) )
gotone = true;
}
@@ -725,7 +727,7 @@ bool KOWhatsNextView::appendTodo(Incidence *ev, QString ind , bool isSub )
QPtrList<Incidence> Relations = ev->relations();
Incidence *to;
for (to=Relations.first();to;to=Relations.next()) {
- if (!((Todo*)to)->isCompleted())
+ if (!((Todo*)to)->isCompleted() && ((Todo*)to)->priority() <= mCurrentMaxPrio )
appendTodo( to, ind , true );
}