Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/collectionpane.cpp
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | |||||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | CollectionStorageModel::~CollectionStorageModel() | 56 | CollectionStorageModel::~CollectionStorageModel() | ||
57 | { | 57 | { | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | bool CollectionStorageModel::isOutBoundFolder(const Akonadi::Collection &c) const | 60 | bool CollectionStorageModel::isOutBoundFolder(const Akonadi::Collection &c) const | ||
61 | { | 61 | { | ||
62 | if (c.hasAttribute<Akonadi::MessageFolderAttribute>() | 62 | if (c.hasAttribute<Akonadi::MessageFolderAttribute>()) { | ||
63 | && c.attribute<Akonadi::MessageFolderAttribute>()->isOutboundFolder()) { | 63 | return c.attribute<Akonadi::MessageFolderAttribute>()->isOutboundFolder(); | ||
64 | return true; | | |||
65 | } | 64 | } | ||
66 | QSharedPointer<FolderSettings> fd = FolderSettings::forCollection(c, false); | 65 | QSharedPointer<FolderSettings> fd = FolderSettings::forCollection(c, false); | ||
67 | if (fd) { | 66 | if (fd) { | ||
68 | const QString folderId(QString::number(c.id())); | 67 | const QString folderId(QString::number(c.id())); | ||
69 | // default setting | 68 | // default setting | ||
70 | const KIdentityManagement::Identity &identity | 69 | const KIdentityManagement::Identity &identity | ||
71 | = kmkernel->identityManager()->identityForUoidOrDefault(fd->identity()); | 70 | = kmkernel->identityManager()->identityForUoidOrDefault(fd->identity()); | ||
72 | 71 | | |||
Show All 26 Lines |