Commit c5cd3663 authored by Laurent Montel's avatar Laurent Montel 😁

Make sure to clean up list of filter

parent e33795af
cmake_minimum_required(VERSION 3.0)
set(PIM_VERSION "5.5.40")
set(PIM_VERSION "5.5.41")
project(mailcommon VERSION ${PIM_VERSION})
......
......@@ -135,6 +135,16 @@ FilterManager::FilterManager()
}
}
FilterManager::~FilterManager()
{
cleanup();
}
void FilterManager::cleanup()
{
d->clear();
}
void FilterManager::slotServerStateChanged(Akonadi::ServerManager::State state)
{
if (state == Akonadi::ServerManager::Running) {
......
......@@ -43,6 +43,7 @@ class MAILCOMMON_EXPORT FilterManager : public QObject
Q_OBJECT
public:
~FilterManager();
/**
* Describes the list of filters.
*/
......@@ -158,6 +159,7 @@ public:
bool initialized() const;
void cleanup();
private Q_SLOTS:
void slotServerStateChanged(Akonadi::ServerManager::State);
void slotFinishedTagListing(KJob *);
......
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