Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Runtime
Commits
3d41c2dc
Commit
3d41c2dc
authored
Aug 07, 2020
by
Laurent Montel
😁
Browse files
Exclude toplevel as notification setting
parent
f0380ed4
Pipeline
#29981
failed with stage
in 81 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
agents/newmailnotifier/newmailnotifierselectcollectionwidget.cpp
View file @
3d41c2dc
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment