Issue #35 - fix compiler warnings

This commit is contained in:
Attila Tőkés 2017-06-01 18:29:13 +03:00
parent 6ea91ad3cb
commit 145720277c
2 changed files with 4 additions and 0 deletions

View File

@ -107,12 +107,14 @@ void SendEmail::on_sendEmail_clicked()
}
if (auth)
{
smtp.login(user, password);
if (!smtp.waitForAuthenticated())
{
errorMessage("Authentification Failed");
return;
}
}
smtp.sendMail(message);
if (!smtp.waitForMailSent())

View File

@ -599,6 +599,8 @@ void SmtpClient::socketStateChanged(QAbstractSocket::SocketState state) {
void SmtpClient::socketError(QAbstractSocket::SocketError socketError) {
#ifndef QT_NO_DEBUG
qDebug() << "[Socket] ERROR:" << socketError;
#else
Q_UNUSED(socketError);
#endif
emit error(SocketError);
}