Commit d0092780 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix crash when we want to open it in akonadi console

parent 13bd0dad
......@@ -20,10 +20,12 @@
#include "archivemailwidget.h"
#include "addarchivemaildialog.h"
#include "archivemailagentutil.h"
#include "archivemailkernel.h"
#include "kmail-version.h"
#include <MailCommon/MailUtil>
#include <MailCommon/MailKernel>
#include <QLocale>
#include <KLocalizedString>
......@@ -67,6 +69,10 @@ ArchiveMailWidget::ArchiveMailWidget(const KSharedConfigPtr &config, QWidget *pa
: Akonadi::AgentConfigurationBase(config, parent, args)
, mChanged(false)
{
ArchiveMailKernel *archiveMailKernel = new ArchiveMailKernel(this);
CommonKernel->registerKernelIf(archiveMailKernel); //register KernelIf early, it is used by the Filter classes
CommonKernel->registerSettingsIf(archiveMailKernel); //SettingsIf is used in FolderTreeWidget
QWidget *w = new QWidget(parent);
mWidget.setupUi(w);
parent->layout()->addWidget(w);
......
Supports Markdown
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