summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-06-30 13:47:01 +0200
committerMontel Laurent <[email protected]>2017-06-30 13:47:01 +0200
commita2dcfb5c4191fc0ee9fb0ad14ea50787f236cde5 (patch)
tree4705c5ff425b47cee5ac2828ca7d69383c27191c
parent1fe389c99a2fe0c17ebbffc12011c44a4bb18872 (diff)
Fix api
-rw-r--r--src/plugins/evolutionv3/evolutionsettings.cpp2
-rw-r--r--src/plugins/sylpheed/sylpheedsettings.cpp2
-rw-r--r--src/plugins/thunderbird/thunderbirdsettings.cpp2
-rw-r--r--src/plugins/trojita/trojitasettings.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/evolutionv3/evolutionsettings.cpp b/src/plugins/evolutionv3/evolutionsettings.cpp
index 0725e35..8248892 100644
--- a/src/plugins/evolutionv3/evolutionsettings.cpp
+++ b/src/plugins/evolutionv3/evolutionsettings.cpp
@@ -411,7 +411,7 @@ void EvolutionSettings::extractAccountInfo(const QString &info)
}
MailTransport::Transport *transport = createTransport();
- transport->setType(MailTransport::Transport::EnumType::SMTP);
+ transport->setIdentifier(QStringLiteral("SMTP"));
for (QDomElement smtp = e.firstChildElement(); !smtp.isNull(); smtp = smtp.nextSiblingElement()) {
const QString smtpTag = smtp.tagName();
if (smtpTag == QLatin1String("url")) {
diff --git a/src/plugins/sylpheed/sylpheedsettings.cpp b/src/plugins/sylpheed/sylpheedsettings.cpp
index 0c0dac5..b532849 100644
--- a/src/plugins/sylpheed/sylpheedsettings.cpp
+++ b/src/plugins/sylpheed/sylpheedsettings.cpp
@@ -500,7 +500,7 @@ QString SylpheedSettings::readTransport(const KConfigGroup &accountConfig)
if (!smtpserver.isEmpty()) {
MailTransport::Transport *mt = createTransport();
- mt->setType(MailTransport::Transport::EnumType::SMTP);
+ mt->setIdentifier(QStringLiteral("SMTP"));
mt->setName(smtpserver);
mt->setHost(smtpserver);
int port = 0;
diff --git a/src/plugins/thunderbird/thunderbirdsettings.cpp b/src/plugins/thunderbird/thunderbirdsettings.cpp
index e738beb..752edcf 100644
--- a/src/plugins/thunderbird/thunderbirdsettings.cpp
+++ b/src/plugins/thunderbird/thunderbirdsettings.cpp
@@ -803,7 +803,7 @@ void ThunderbirdSettings::readTransport()
for (const QString &smtp : smtpList) {
const QString smtpName = QStringLiteral("mail.smtpserver.%1").arg(smtp);
MailTransport::Transport *mt = createTransport();
- mt->setType(MailTransport::Transport::EnumType::SMTP);
+ mt->setIdentifier(QStringLiteral("SMTP"));
const QString name = mHashConfig.value(smtpName + QStringLiteral(".description")).toString();
mt->setName(name);
const QString hostName = mHashConfig.value(smtpName + QStringLiteral(".hostname")).toString();
diff --git a/src/plugins/trojita/trojitasettings.cpp b/src/plugins/trojita/trojitasettings.cpp
index 6937179..d72785c 100644
--- a/src/plugins/trojita/trojitasettings.cpp
+++ b/src/plugins/trojita/trojitasettings.cpp
@@ -139,7 +139,7 @@ void TrojitaSettings::readTransport()
mt->setEncryption(MailTransport::Transport::EnumEncryption::TLS);
}
}
- mt->setType(MailTransport::Transport::EnumType::SMTP);
+ mt->setIdentifier(QStringLiteral("SMTP"));
} else {
qCWarning(TROJITAPLUGIN_LOG) << " smtpMethod unknown " << smtpMethod;
}