-rw-r--r-- | korganizer/kodaymatrix.cpp | 12 | ||||
-rw-r--r-- | korganizer/kotodoviewitem.cpp | 4 |
2 files changed, 10 insertions, 6 deletions
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp index 9812321..ca896b5 100644 --- a/korganizer/kodaymatrix.cpp +++ b/korganizer/kodaymatrix.cpp @@ -212,7 +212,7 @@ void KODayMatrix::updateView() } void KODayMatrix::repaintViewTimed() { - //qDebug("KODayMatrix::repaintViewTimed "); + qDebug("KODayMatrix::repaintViewTimed "); mRepaintTimer->stop(); repaint(false); } @@ -220,7 +220,7 @@ void KODayMatrix::updateViewTimed() { mUpdateTimer->stop(); - //qDebug("KODayMatrix::updateView(QDate actdate) %d", ++iii ); + qDebug("KODayMatrix::updateView(QDate actdate)"); for(int i = 0; i < NUMDAYS; i++) { // if events are set for the day then remember to draw it bold @@ -288,16 +288,16 @@ void KODayMatrix::updateView(QDate actdate) mDayChanged = true; recalculateToday(); } - //qDebug("restart Timer %d vis: %d", mDayChanged, isVisible() ); + qDebug("restart Timer %d vis: %d", mDayChanged, isVisible() ); if ( !isVisible() ) { mPendingUpdateBeforeRepaint = true; } else { #ifdef DESKTOP_VERSION - mRepaintTimer->start( 250 ); - mUpdateTimer->start( 2000 ); + //mRepaintTimer->start( 250 ); + mUpdateTimer->start( 250 ); #else mRepaintTimer->start( 350 ); - mUpdateTimer->start( 4000 ); + mUpdateTimer->start( 2000 ); #endif } } diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp index 1edddac..6bdee18 100644 --- a/korganizer/kotodoviewitem.cpp +++ b/korganizer/kotodoviewitem.cpp @@ -208,6 +208,10 @@ void KOTodoViewItem::stateChange(bool state) //qDebug("SETON "); return; } + if ( mTodo->isCompleted() == state ) { + //qDebug("STATECHANGE:nothing to do "); + return; + } QString keyd = "=="; QString keyt = "=="; //qDebug("KOTodoViewItem::stateChange %s ", text(0).latin1()); |