Commit 611510d0 authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Christophe Giboudeaux
Browse files

Fix Bug 379155 - Imap resources crash when trying to open settings

BUG: 379155
parent e8b131fe
......@@ -597,8 +597,8 @@ void SetupServer::slotComplete()
void SetupServer::slotSafetyChanged()
{
#ifdef WITH_GMAIL_XOAUTH2
if (m_serverTest == nullptr) {
#ifdef WITH_GMAIL_XOAUTH2
const bool isGmail = Utils::isGmail(m_ui->imapServer->text());
qCDebug(IMAPRESOURCE_LOG) << "serverTest null";
m_ui->noRadio->setEnabled(!isGmail);
......@@ -606,9 +606,9 @@ void SetupServer::slotSafetyChanged()
m_ui->tlsRadio->setEnabled(!isGmail);
m_ui->authenticationCombo->setEnabled(!isGmail);
#endif
return;
}
#endif
QVector<int> protocols;
switch (m_ui->safeImapGroup->checkedId()) {
......
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