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

Fix enum name

parent c2205d1e
cmake_minimum_required(VERSION 3.0)
set(PIM_VERSION "5.5.44")
set(PIM_VERSION "5.5.45")
project(mailcommon VERSION ${PIM_VERSION})
......
......@@ -165,7 +165,7 @@ QList<MailFilter *> FilterImporterExporter::importFilters(
QString fileName(filename);
QFile file;
if ((type != ThunderBirdFilter) && (type != IcedoveFilter) && (type != SeaMonkey)) {
if ((type != ThunderBirdFilter) && (type != IcedoveFilter) && (type != SeaMonkeyFilter)) {
if (fileName.isEmpty()) {
QString title;
QString defaultPath;
......@@ -176,7 +176,7 @@ QList<MailFilter *> FilterImporterExporter::importFilters(
break;
case ThunderBirdFilter:
case IcedoveFilter:
case SeaMonkey:
case SeaMonkeyFilter:
break;
case EvolutionFilter:
title = i18n("Import Evolution Filters");
......@@ -230,11 +230,17 @@ QList<MailFilter *> FilterImporterExporter::importFilters(
break;
}
case IcedoveFilter:
case SeaMonkey:
case SeaMonkeyFilter:
case ThunderBirdFilter: {
if (fileName.isEmpty()) {
//TODO add SeaMonkey support
const QString defaultPath = (type == ThunderBirdFilter) ? MailCommon::FilterImporterThunderbird::defaultThunderbirdFiltersSettingsPath() : MailCommon::FilterImporterThunderbird::defaultIcedoveFiltersSettingsPath();
QString defaultPath;
if (type == ThunderBirdFilter) {
defaultPath = MailCommon::FilterImporterThunderbird::defaultThunderbirdFiltersSettingsPath();
} else if (type == IcedoveFilter) {
defaultPath = MailCommon::FilterImporterThunderbird::defaultIcedoveFiltersSettingsPath();
} else if (type == SeaMonkeyFilter) {
defaultPath = MailCommon::FilterImporterThunderbird::defaultSeaMonkeyFiltersSettingsPath();
}
SelectThunderbirdFilterFilesDialog *selectThunderBirdFileDialog = new SelectThunderbirdFilterFilesDialog(defaultPath, d->mParent);
selectThunderBirdFileDialog->setStartDir(QUrl::fromLocalFile(defaultPath));
......
......@@ -63,7 +63,7 @@ public:
ClawsMailFilter = 6,
IcedoveFilter = 7,
GmailFilter = 8,
SeaMonkey = 9
SeaMonkeyFilter = 9
};
/**
......
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