Commit 815ea7dc authored by Laurent Montel's avatar Laurent Montel 😁

Use an unique kidentitymanager

parent bb80b602
......@@ -46,7 +46,7 @@ AbstractImportExportJob::AbstractImportExportJob(QObject *parent, ArchiveStorage
: QObject(parent),
mTypeSelected(typeSelected),
mArchiveStorage(archiveStorage),
mIdentityManager(new KIdentityManagement::IdentityManager(false, this, "mIdentityManager")),
mIdentityManager(KIdentityManagement::IdentityManager::self()),
mTempDir(Q_NULLPTR),
mArchiveDirectory(Q_NULLPTR),
mNumberOfStep(numberOfStep),
......@@ -61,7 +61,6 @@ AbstractImportExportJob::AbstractImportExportJob(QObject *parent, ArchiveStorage
AbstractImportExportJob::~AbstractImportExportJob()
{
delete mCreateResource;
delete mIdentityManager;
delete mTempDir;
}
......
......@@ -36,7 +36,7 @@ PimSettingExporterKernel::PimSettingExporterKernel(QObject *parent)
: QObject(parent)
{
mMessageSender = new MessageComposer::AkonadiSender(this);
mIdentityManager = new KIdentityManagement::IdentityManager(false, this);
mIdentityManager = KIdentityManagement::IdentityManager::self();
Akonadi::Session *session = new Akonadi::Session("Backup Mail Kernel ETM", this);
mFolderCollectionMonitor = new MailCommon::FolderCollectionMonitor(session, this);
......
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