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

Daniel Vrátil noreply at phabricator.kde.org
Tue Mar 3 08:14:21 GMT 2020


dvratil requested changes to this revision.
dvratil added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> akonadicollectionview.cpp:311-317
> +            QString displayName;
> +            if (collection.hasAttribute<Akonadi::EntityDisplayAttribute>()) {
> +                displayName = collection.attribute<Akonadi::EntityDisplayAttribute>()->displayName();
> +            }
> +            if (displayName.isEmpty()) {
> +                displayName = collection.name();
> +            }

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

REPOSITORY
  R210 KOrganizer

REVISION DETAIL
  https://phabricator.kde.org/D27796

To: winterz, dvratil, vkrause, mlaurent
Cc: kde-pim, fbampaloukas, dcaliste, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20200303/b8dbe61e/attachment-0001.html>


More information about the kde-pim mailing list