mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
qt 5.15 compatibility (#4027)
This commit is contained in:
parent
0f0e0193c1
commit
7fa1936d0f
27 changed files with 101 additions and 39 deletions
|
|
@ -110,7 +110,11 @@ void IslInterface::initServer()
|
|||
|
||||
socket->startServerEncryption();
|
||||
if (!socket->waitForEncrypted(5000)) {
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
|
||||
QList<QSslError> sslErrors(socket->sslHandshakeErrors());
|
||||
#else
|
||||
QList<QSslError> sslErrors(socket->sslErrors());
|
||||
#endif
|
||||
if (sslErrors.isEmpty())
|
||||
qDebug() << "[ISL] SSL handshake timeout, terminating connection";
|
||||
else
|
||||
|
|
@ -187,7 +191,11 @@ void IslInterface::initClient()
|
|||
return;
|
||||
}
|
||||
if (!socket->waitForEncrypted(5000)) {
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
|
||||
QList<QSslError> sslErrors(socket->sslHandshakeErrors());
|
||||
#else
|
||||
QList<QSslError> sslErrors(socket->sslErrors());
|
||||
#endif
|
||||
if (sslErrors.isEmpty())
|
||||
qDebug() << "[ISL] SSL handshake timeout, terminating connection";
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue