[Bug 259082] [regression] Special folder icons do not show
Laurent Montel
montel at kde.org
Thu Dec 9 13:03:00 GMT 2010
https://bugs.kde.org/show_bug.cgi?id=259082
Laurent Montel <montel at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |montel at kde.org
--- Comment #1 from Laurent Montel <montel kde org> 2010-12-09 14:02:58 ---
I confirm this bug.
I tried to fix it in imap resource but don't understand why it doesn't work
Index: setupserver.cpp
===================================================================
--- setupserver.cpp (révision 1204707)
+++ setupserver.cpp (copie de travail)
@@ -48,6 +48,7 @@
#include <akonadi/kmime/specialmailcollections.h>
#include <akonadi/kmime/specialmailcollectionsrequestjob.h>
#include <akonadi/resourcesettings.h>
+#include <akonadi/entitydisplayattribute.h>
#include <kemailsettings.h>
#include <klocale.h>
#include <kpushbutton.h>
@@ -277,7 +278,14 @@
Settings::self()->setSieveVacationFilename( m_vacationFileName );
Settings::self()->setTrashCollection(
m_ui->folderRequester->collection().id() );
+ Akonadi::EntityDisplayAttribute *attribute =
m_ui->folderRequester->collection().attribute<Akonadi::EntityDisplayAttribute>(
Akonadi::Entity::AddIfMissing );
+ attribute->setIconName( QLatin1String( "user-trash" ) );
+ Akonadi::CollectionModifyJob *job = new Akonadi::CollectionModifyJob(
m_ui->folderRequester->collection() );
+ job->start();
--
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