Commit e84e85b4 authored by David Jarvie's avatar David Jarvie

Show old format calendars in read-only colour in calendar list

Use the read-only colour for all calendars which are not actually
writable.

Forward port of f8969a48da10f0c87d4d024bc67c710bf5020638 (4.8)
parent f681c514
......@@ -879,7 +879,7 @@ QColor AkonadiModel::foregroundColor(const Akonadi::Collection& collection, cons
colour = Preferences::archivedColour();
else if (mimeTypes.contains(KAlarmCal::MIME_TEMPLATE))
colour = KColorScheme(QPalette::Active).foreground(KColorScheme::LinkText).color();
if (colour.isValid() && (collection.rights() & writableRights) != writableRights)
if (colour.isValid() && isWritable(collection) <= 0)
return KColorUtils::lighten(colour, 0.25);
return colour;
}
......
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