Commit 5458de68 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't assign new color if not necessary

parent 39cc35ab
......@@ -149,8 +149,6 @@ void StyledCalendarDelegate::paint(QPainter *painter, const QStyleOptionViewItem
QColor color = KOHelper::resourceColorKnown(col);
if (!color.isValid()) {
color = KOHelper::resourceColor(col);
} else {
color = KOHelper::resourceColor(col);
}
if (color.isValid()) {
painter->save();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment