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

Use isEmpty

parent bf9ab402
......@@ -603,10 +603,10 @@ void SetupServer::slotSafetyChanged()
foreach (int prot, protocols) {
addAuthenticationItem(m_ui->authenticationCombo, (MailTransport::Transport::EnumAuthenticationType::type) prot);
}
if (protocols.size() > 0) {
setCurrentAuthMode(m_ui->authenticationCombo, (MailTransport::Transport::EnumAuthenticationType::type) protocols.first());
} else {
if (protocols.isEmpty()) {
qCDebug(IMAPRESOURCE_LOG) << "no authmodes found";
} else {
setCurrentAuthMode(m_ui->authenticationCombo, (MailTransport::Transport::EnumAuthenticationType::type) protocols.first());
}
}
......
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