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) (unidiff)
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
@@ -191,4 +191,5 @@ void KOWhatsNextView::updateView()
191 if ( mTimer->isActive() ) 191 if ( mTimer->isActive() )
192 restartTimer(); 192 restartTimer();
193 mCurrentMaxPrio = 5;
193 //qDebug("KOWhatsNextView::updateView() "); 194 //qDebug("KOWhatsNextView::updateView() ");
194 // mDateLabel->setText(KGlobal::locale()->formatDate(QDate::currentDate())); 195 // mDateLabel->setText(KGlobal::locale()->formatDate(QDate::currentDate()));
@@ -319,4 +320,5 @@ void KOWhatsNextView::updateView()
319 while(todo) { 320 while(todo) {
320 if (!todo->isCompleted() && (todo->priority() == priority) ) { 321 if (!todo->isCompleted() && (todo->priority() == priority) ) {
322 mCurrentMaxPrio = priority - priosFound + topmostPrios -1;
321 if ( appendTodo(todo) ) 323 if ( appendTodo(todo) )
322 gotone = true; 324 gotone = true;
@@ -726,5 +728,5 @@ bool KOWhatsNextView::appendTodo(Incidence *ev, QString ind , bool isSub )
726 Incidence *to; 728 Incidence *to;
727 for (to=Relations.first();to;to=Relations.next()) { 729 for (to=Relations.first();to;to=Relations.next()) {
728 if (!((Todo*)to)->isCompleted()) 730 if (!((Todo*)to)->isCompleted() && ((Todo*)to)->priority() <= mCurrentMaxPrio )
729 appendTodo( to, ind , true ); 731 appendTodo( to, ind , true );
730 } 732 }