Commit 636f62a0 authored by Laurent Montel's avatar Laurent Montel 😁

Make sure that mImportWizard is defined

parent 5319de27
......@@ -32,6 +32,7 @@
ImportWizardDisplayInfo::ImportWizardDisplayInfo(ImportWizard *wizard)
: mImportWizard(wizard)
{
Q_ASSERT_X(mImportWizard, __FUNCTION__, "mImportWizard is null");
}
ImportWizardDisplayInfo::~ImportWizardDisplayInfo()
......@@ -85,14 +86,12 @@ void ImportWizardDisplayInfo::filterImportInfo(const QString &log)
void ImportWizardDisplayInfo::initializeFilter(MailImporter::Filter &filter)
{
if (mImportWizard) {
MailImporter::FilterInfo *info = new MailImporter::FilterInfo();
ImportFilterInfoGui *infoGui = new ImportFilterInfoGui(mImportWizard->importMailPage());
info->setFilterInfoGui(infoGui);
info->clear(); // Clear info from last time
MailImporter::FilterImporterAkonadi *filterImporter = new MailImporter::FilterImporterAkonadi(info);
filterImporter->setRootCollection(mImportWizard->importMailPage()->selectedCollection());
filter.setFilterImporter(filterImporter);
filter.setFilterInfo(info);
}
MailImporter::FilterInfo *info = new MailImporter::FilterInfo();
ImportFilterInfoGui *infoGui = new ImportFilterInfoGui(mImportWizard->importMailPage());
info->setFilterInfoGui(infoGui);
info->clear(); // Clear info from last time
MailImporter::FilterImporterAkonadi *filterImporter = new MailImporter::FilterImporterAkonadi(info);
filterImporter->setRootCollection(mImportWizard->importMailPage()->selectedCollection());
filter.setFilterImporter(filterImporter);
filter.setFilterInfo(info);
}
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