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

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

BUG: 379155
parent 8de38302
......@@ -596,8 +596,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);
......@@ -605,9 +605,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