Diffstat (limited to 'korganizer/kotodoviewitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/kotodoviewitem.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp index f987b63..748f3e4 100644 --- a/korganizer/kotodoviewitem.cpp +++ b/korganizer/kotodoviewitem.cpp @@ -370,3 +370,6 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i QColor colorToSet; - if ( setColor ) { + if ( column == 0 && mTodo->calID() > 1 ) { + setColor = true; + colorToSet = KOPrefs::instance()->defaultColor( mTodo->calID() ); + } else if ( setColor ) { QStringList categories = mTodo->categories(); @@ -377,3 +380,3 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i setColor = false; - } + } bool openMode = !isOpen(); |