KOrganizer: CollectionView add "Default Calendar" to collection name
ClosedPublic

Authored by winterz on Mar 2 2020, 11:22 PM.

Details

Summary

In the collectionview, if a collection contains the default calendar print "FOO (Default Calendar)" instead of "FOO"

Diff Detail

Repository
R210 KOrganizer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
winterz created this revision.Mar 2 2020, 11:22 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptMar 2 2020, 11:22 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
winterz requested review of this revision.Mar 2 2020, 11:22 PM
dvratil requested changes to this revision.Mar 3 2020, 8:14 AM
dvratil added inline comments.
src/akonadicollectionview.cpp
311–317

Use collection.displayName() instead, it does exactly the same .

This revision now requires changes to proceed.Mar 3 2020, 8:14 AM
winterz updated this revision to Diff 76846.Mar 3 2020, 1:08 PM

simplify using Akonadi::Collection::displayName()

dvratil accepted this revision.Mar 3 2020, 1:30 PM
This revision is now accepted and ready to land.Mar 3 2020, 1:30 PM
This revision was automatically updated to reflect the committed changes.