Commit 7907820a authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 338d463c
...@@ -96,13 +96,12 @@ void GearySettings::readTransport() ...@@ -96,13 +96,12 @@ void GearySettings::readTransport()
if (!settings->value(QStringLiteral("smtp_noauth"), true).toBool()) { if (!settings->value(QStringLiteral("smtp_noauth"), true).toBool()) {
mt->setEncryption(MailTransport::Transport::EnumEncryption::None); mt->setEncryption(MailTransport::Transport::EnumEncryption::None);
} } else if (settings->value(QStringLiteral("smtp_ssl"), true).toBool()) {
if (settings->value(QStringLiteral("smtp_ssl"), true).toBool()) {
mt->setEncryption(MailTransport::Transport::EnumEncryption::SSL); mt->setEncryption(MailTransport::Transport::EnumEncryption::SSL);
} } else if (settings->value(QStringLiteral("smtp_starttls"), true).toBool()) {
if (settings->value(QStringLiteral("smtp_starttls"), true).toBool()) {
mt->setEncryption(MailTransport::Transport::EnumEncryption::TLS); mt->setEncryption(MailTransport::Transport::EnumEncryption::TLS);
} }
if (settings->value(QStringLiteral("smtp_use_imap_credentials"), true).toBool()) { if (settings->value(QStringLiteral("smtp_use_imap_credentials"), true).toBool()) {
//TODO store value //TODO store value
} }
......
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