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
2ee9edc1
Commit
2ee9edc1
authored
Jun 03, 2021
by
Laurent Montel
😁
Browse files
Delete all filter info because to resave it
parent
414d957e
Pipeline
#63994
passed with stage
in 39 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messagelist/src/core/filtersavedmanager.cpp
View file @
2ee9edc1
...
...
@@ -9,6 +9,7 @@
#include <KConfigGroup>
#include <KSharedConfig>
#include <QMenu>
#include <QRegularExpression>
using
namespace
MessageList
::
Core
;
FilterSavedManager
::
FilterSavedManager
(
QObject
*
parent
)
:
QObject
(
parent
)
...
...
@@ -71,7 +72,11 @@ void FilterSavedManager::removeFilter(const QString &identifier)
Filter
*
f
=
Filter
::
load
(
KSharedConfig
::
openConfig
(),
i
);
lst
<<
f
;
}
// TODO Delete all filters before to save it
const
QStringList
list
=
KSharedConfig
::
openConfig
()
->
groupList
().
filter
(
QRegularExpression
(
QStringLiteral
(
"Filter_
\\
d+"
)));
for
(
const
QString
&
group
:
list
)
{
KSharedConfig
::
openConfig
()
->
deleteGroup
(
group
);
}
int
numberOfFilter
=
0
;
for
(
Filter
*
f
:
qAsConst
(
lst
))
{
...
...
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