-rw-r--r-- | korganizer/koagendaitem.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp index ee9f39a..a05c60e 100644 --- a/korganizer/koagendaitem.cpp +++ b/korganizer/koagendaitem.cpp | |||
@@ -96,2 +96,5 @@ void KOAgendaItem::init ( Incidence *incidence, QDate qd ) | |||
96 | if (cat.isEmpty()) { | 96 | if (cat.isEmpty()) { |
97 | if ( (incidence->type() == "Todo") &&((static_cast<Todo*>(incidence))->isCompleted()) ) | ||
98 | mBackgroundColor =KOPrefs::instance()->mTodoDoneColor; | ||
99 | else | ||
97 | mBackgroundColor =KOPrefs::instance()->mEventColor; | 100 | mBackgroundColor =KOPrefs::instance()->mEventColor; |
@@ -99,3 +102,8 @@ void KOAgendaItem::init ( Incidence *incidence, QDate qd ) | |||
99 | mBackgroundColor = *KOPrefs::instance()->categoryColor(cat); | 102 | mBackgroundColor = *KOPrefs::instance()->categoryColor(cat); |
103 | if ( (incidence->type() == "Todo") &&((static_cast<Todo*>(incidence))->isCompleted()) ) { | ||
104 | if ( mBackgroundColor == KOPrefs::instance()->mEventColor ) | ||
105 | mBackgroundColor =KOPrefs::instance()->mTodoDoneColor; | ||
106 | } | ||
100 | } | 107 | } |
108 | |||
101 | } | 109 | } |