Commit f4166ccf authored by Laurent Montel's avatar Laurent Montel 😁

Const'ify

parent bb97a994
......@@ -219,8 +219,8 @@ void KMSystemTray::fillFoldersMenu(QMenu *menu, const QAbstractItemModel *model,
const QModelIndex index = model->index(row, 0, parentIndex);
const Akonadi::Collection collection = model->data(index, Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>();
qint64 count = 0;
if (!mUnityServiceManager->excludeFolder(collection)) {
Akonadi::CollectionStatistics statistics = collection.statistics();
if (mUnityServiceManager && !mUnityServiceManager->excludeFolder(collection)) {
const Akonadi::CollectionStatistics statistics = collection.statistics();
count = qMax(0LL, statistics.unreadCount());
if (count > 0) {
if (mUnityServiceManager->ignoreNewMailInFolder(collection)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment