diff --git a/src/widgets/collectionpane.cpp b/src/widgets/collectionpane.cpp --- a/src/widgets/collectionpane.cpp +++ b/src/widgets/collectionpane.cpp @@ -59,9 +59,8 @@ bool CollectionStorageModel::isOutBoundFolder(const Akonadi::Collection &c) const { - if (c.hasAttribute() - && c.attribute()->isOutboundFolder()) { - return true; + if (c.hasAttribute()) { + return c.attribute()->isOutboundFolder(); } QSharedPointer fd = FolderSettings::forCollection(c, false); if (fd) {