Commit 414d957e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix saving filters

parent 42b72cd8
Pipeline #63966 passed with stage
in 40 minutes and 50 seconds
......@@ -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++;
}
......
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