From 0cc9283275ebeee5b88058e992b223611af70fb9 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 8 Apr 2010 16:28:47 +0000 Subject: [PATCH] eCS (OS/2) compilation fix (Thanks Silvan Scherrer) --- src/downloadthread.cpp | 4 ++++ src/downloadthread.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/downloadthread.cpp b/src/downloadthread.cpp index 837655cec..beb0651fc 100644 --- a/src/downloadthread.cpp +++ b/src/downloadthread.cpp @@ -42,7 +42,9 @@ enum ProxyType {HTTP=1, SOCKS5=2, HTTP_PW=3, SOCKS5_PW=4, SOCKS4=5}; downloadThread::downloadThread(QObject* parent) : QObject(parent) { networkManager = new QNetworkAccessManager(this); connect(networkManager, SIGNAL(finished (QNetworkReply*)), this, SLOT(processDlFinished(QNetworkReply*))); +#if !defined(Q_WS_PM) connect(networkManager, SIGNAL(sslErrors(QNetworkReply*,QList)), this, SLOT(ignoreSslErrors(QNetworkReply*,QList))); +#endif } downloadThread::~downloadThread(){ @@ -215,8 +217,10 @@ QString downloadThread::errorCodeToString(QNetworkReply::NetworkError status) { } } +#if !defined(Q_WS_PM) void downloadThread::ignoreSslErrors(QNetworkReply* reply,QList errors) { Q_UNUSED(errors) // Ignore all SSL errors reply->ignoreSslErrors(); } +#endif diff --git a/src/downloadthread.h b/src/downloadthread.h index 335e39224..e3352abe2 100644 --- a/src/downloadthread.h +++ b/src/downloadthread.h @@ -63,7 +63,9 @@ protected: protected slots: void processDlFinished(QNetworkReply* reply); void checkDownloadSize(qint64 bytesReceived, qint64 bytesTotal); +#if !defined(Q_WS_PM) void ignoreSslErrors(QNetworkReply*,QList); +#endif };