Issue #35 - fix compiler warnings
This commit is contained in:
parent
6ea91ad3cb
commit
145720277c
@ -107,12 +107,14 @@ void SendEmail::on_sendEmail_clicked()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (auth)
|
if (auth)
|
||||||
|
{
|
||||||
smtp.login(user, password);
|
smtp.login(user, password);
|
||||||
if (!smtp.waitForAuthenticated())
|
if (!smtp.waitForAuthenticated())
|
||||||
{
|
{
|
||||||
errorMessage("Authentification Failed");
|
errorMessage("Authentification Failed");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
smtp.sendMail(message);
|
smtp.sendMail(message);
|
||||||
if (!smtp.waitForMailSent())
|
if (!smtp.waitForMailSent())
|
||||||
|
@ -599,6 +599,8 @@ void SmtpClient::socketStateChanged(QAbstractSocket::SocketState state) {
|
|||||||
void SmtpClient::socketError(QAbstractSocket::SocketError socketError) {
|
void SmtpClient::socketError(QAbstractSocket::SocketError socketError) {
|
||||||
#ifndef QT_NO_DEBUG
|
#ifndef QT_NO_DEBUG
|
||||||
qDebug() << "[Socket] ERROR:" << socketError;
|
qDebug() << "[Socket] ERROR:" << socketError;
|
||||||
|
#else
|
||||||
|
Q_UNUSED(socketError);
|
||||||
#endif
|
#endif
|
||||||
emit error(SocketError);
|
emit error(SocketError);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user