Commit 3d41c2dc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Exclude toplevel as notification setting

parent f0380ed4
Pipeline #29981 failed with stage
in 81 minutes and 20 seconds
......@@ -52,6 +52,10 @@ QVariant NewMailNotifierCollectionProxyModel::data(const QModelIndex &index, int
if (index.isValid()) {
const Akonadi::Collection collection
= data(index, Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>();
// Make top-level collections uncheckable
if (collection.parentCollection() == Akonadi::Collection::root()) {
return {};
}
if (mNotificationCollection.contains(collection)) {
return mNotificationCollection.value(collection) ? Qt::Checked : Qt::Unchecked;
} else {
......
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