[Bug 259082] [regression] Special folder icons do not show

Volker Krause vkrause at kde.org
Fri Dec 10 08:10:24 GMT 2010


https://bugs.kde.org/show_bug.cgi?id=259082





--- Comment #2 from Volker Krause <vkrause kde org>  2010-12-10 09:10:17 ---
The patch looks like the right approach, but you are modifying a temporary copy
of the collection (Akonadi::Collection is implicitly shared), so the
ItemModifyJob will not actually change anything. Try something like:
Akonadi::Collection trash = m_ui->folderRequester->collection();
Akonadi::EntityDisplayAttribute *attribute =
trash.attribute<Akonadi::EntityDisplayAttribute>( Akonadi::Entity::AddIfMissing
);
attribute->setIconName( QLatin1String( "user-trash" ) );
new Akonadi::CollectionModifyJob( trash );

(Akonadi::Job sub-classes are auto-started, so no need to explicitly call
start() btw).

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list