diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index 088d59be70b..072ab1fa7f0 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -6529,7 +6529,7 @@ void QgisApp::namSetup() connect( nam, SIGNAL( proxyAuthenticationRequired( const QNetworkProxy &, QAuthenticator * ) ), this, SLOT( namProxyAuthenticationRequired( const QNetworkProxy &, QAuthenticator * ) ) ); -#ifdef QT_OPENSSL +#ifndef QT_NO_OPENSSL connect( nam, SIGNAL( sslErrors( QNetworkReply *, const QList & ) ), this, SLOT( namSslErrors( QNetworkReply *, const QList & ) ) ); #endif @@ -6567,7 +6567,7 @@ void QgisApp::namProxyAuthenticationRequired( const QNetworkProxy &proxy, QAuthe auth->setPassword( password ); } -#ifdef QT_OPENSSL +#ifndef QT_NO_OPENSSL void QgisApp::namSslErrors( QNetworkReply *reply, const QList &errors ) { QString msg = tr( "SSL errors occured accessing URL %1:" ).arg( reply->request().url().toString() ); diff --git a/src/app/qgisapp.h b/src/app/qgisapp.h index c6ebf3a868a..58e939c3e4c 100644 --- a/src/app/qgisapp.h +++ b/src/app/qgisapp.h @@ -404,7 +404,7 @@ class QgisApp : public QMainWindow //! request credentials for network manager void namAuthenticationRequired( QNetworkReply *reply, QAuthenticator *auth ); void namProxyAuthenticationRequired( const QNetworkProxy &proxy, QAuthenticator *auth ); -#ifdef QT_OPENSSL +#ifndef QT_NO_OPENSSL void namSslErrors( QNetworkReply *reply, const QList &errors ); #endif