summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@nokia.com>2012-05-18 15:42:00 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-22 10:27:46 +0200
commit730dfc74d3e679505fe976e6be6470215e921565 (patch)
tree419ca586407681f39a128c24cfb4df03c6225af5 /examples
parent083af3c31948d47c066f2786c9f7dd2faf82d290 (diff)
Fixed "No such signal" error in download example output.
The signal sslErrors is not defined by QNetworkReply when QT_NO_SSL is undefined. The solution was to add the an ifndef guard around the call to connect so that the signal is only used when it is defined. Change-Id: I9f104ec630ed448af65669b0861df233de5172ac Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/network/download/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/network/download/main.cpp b/examples/network/download/main.cpp
index ae3aa1f78b..40ea9a9b38 100644
--- a/examples/network/download/main.cpp
+++ b/examples/network/download/main.cpp
@@ -86,7 +86,10 @@ void DownloadManager::doDownload(const QUrl &url)
{
QNetworkRequest request(url);
QNetworkReply *reply = manager.get(request);
+
+#ifndef QT_NO_SSL
connect(reply, SIGNAL(sslErrors(QList<QSslError>)), SLOT(sslErrors(QList<QSslError>)));
+#endif
currentDownloads.append(reply);
}