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
PIM Messagelib
Commits
414d957e
Commit
414d957e
authored
Jun 03, 2021
by
Laurent Montel
😁
Browse files
Fix saving filters
parent
42b72cd8
Pipeline
#63966
passed with stage
in 40 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messagelist/src/core/filtersavedmanager.cpp
View file @
414d957e
...
...
@@ -71,10 +71,11 @@ void FilterSavedManager::removeFilter(const QString &identifier)
Filter
*
f
=
Filter
::
load
(
KSharedConfig
::
openConfig
(),
i
);
lst
<<
f
;
}
// TODO Delete all filters before to save it
int
numberOfFilter
=
0
;
for
(
Filter
*
f
:
qAsConst
(
lst
))
{
if
(
f
->
identifier
()
!=
identifier
)
{
if
(
(
f
->
identifier
()
!=
identifier
)
&&
!
f
->
identifier
().
isEmpty
())
{
f
->
save
(
KSharedConfig
::
openConfig
(),
f
->
filterName
());
numberOfFilter
++
;
}
...
...
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