1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

Who needs consistency anyway. Changed to check if QT_NO_OPENSSL is not defined instead.

This commit is contained in:
Christian Muehlhaeuser
2015-10-09 17:53:52 +02:00
parent 1c99e2abbc
commit de820a722a
6 changed files with 8 additions and 8 deletions

View File

@@ -68,7 +68,7 @@ posting events. It is reentrant for all other functionality.
#include <QThread>
#include <qxtmetaobject.h>
#include <QTcpSocket>
#if defined(QT_SECURETRANSPORT) || defined(QT_OPENSSL)
#if defined(QT_SECURETRANSPORT) || !defined(QT_NO_OPENSSL)
#include <QSslSocket>
#endif
@@ -437,7 +437,7 @@ void QxtHttpSessionManager::incomingRequest(quint32 requestID, const QHttpReques
if (socket)
{
event->remoteAddress = socket->peerAddress();
#if defined(QT_SECURETRANSPORT) || defined(QT_OPENSSL)
#if defined(QT_SECURETRANSPORT) || !defined(QT_NO_OPENSSL)
QSslSocket* sslSocket = qobject_cast<QSslSocket*>(socket);
if(sslSocket) {
event->isSecure = true;