-rw-r--r-- | korganizer/koagenda.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 01cef35..0280c74 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp | |||
@@ -1657,26 +1657,28 @@ void KOAgenda::updateTodo( Todo * todo, int days, bool remove) | |||
1657 | for ( itemit=oldconflictItems.first(); itemit != 0; | 1657 | for ( itemit=oldconflictItems.first(); itemit != 0; |
1658 | itemit=oldconflictItems.next() ) { | 1658 | itemit=oldconflictItems.next() ) { |
1659 | if ( itemit != item ) | 1659 | if ( itemit != item ) |
1660 | placeSubCells(itemit); | 1660 | placeSubCells(itemit); |
1661 | } | 1661 | } |
1662 | qApp->processEvents(); | 1662 | qApp->processEvents(); |
1663 | //globalFlagBlockAgendaItemPaint = 0; | 1663 | //globalFlagBlockAgendaItemPaint = 0; |
1664 | for ( itemit=oldconflictItems.first(); itemit != 0; | 1664 | for ( itemit=oldconflictItems.first(); itemit != 0; |
1665 | itemit=oldconflictItems.next() ) { | 1665 | itemit=oldconflictItems.next() ) { |
1666 | globalFlagBlockAgendaItemUpdate = 0; | 1666 | globalFlagBlockAgendaItemUpdate = 0; |
1667 | if ( itemit != item ) | 1667 | if ( itemit != item ) |
1668 | itemit->repaintMe(); | 1668 | itemit->repaintMe(); |
1669 | globalFlagBlockAgendaItemUpdate = 1; | 1669 | globalFlagBlockAgendaItemUpdate = 1; |
1670 | itemit->repaint(); | 1670 | //qDebug("sigleshot "); |
1671 | QTimer::singleShot( 0, itemit, SLOT ( repaintItem() )); | ||
1672 | //itemit->repaint( false ); repaintItem() | ||
1671 | } | 1673 | } |
1672 | blockSignals( false ); | 1674 | blockSignals( false ); |
1673 | } | 1675 | } |
1674 | if ( remove ) { | 1676 | if ( remove ) { |
1675 | //qDebug("remove****************************************** "); | 1677 | //qDebug("remove****************************************** "); |
1676 | return; | 1678 | return; |
1677 | } | 1679 | } |
1678 | if ( todo->hasCompletedDate() && !KOPrefs::instance()->mShowCompletedTodoInAgenda ) | 1680 | if ( todo->hasCompletedDate() && !KOPrefs::instance()->mShowCompletedTodoInAgenda ) |
1679 | return; | 1681 | return; |
1680 | //qDebug("updateTodo+++++++++++++++++++++++++++++++++++++ "); | 1682 | //qDebug("updateTodo+++++++++++++++++++++++++++++++++++++ "); |
1681 | QDate currentDate = QDate::currentDate(); | 1683 | QDate currentDate = QDate::currentDate(); |
1682 | bool overdue = (!todo->isCompleted()) && (todo->dtDue() < currentDate)&& ( KOPrefs::instance()->mShowTodoInAgenda ); | 1684 | bool overdue = (!todo->isCompleted()) && (todo->dtDue() < currentDate)&& ( KOPrefs::instance()->mShowTodoInAgenda ); |