From 730dfc74d3e679505fe976e6be6470215e921565 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Fri, 18 May 2012 15:42:00 +0200 Subject: 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 --- examples/network/download/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') 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)), SLOT(sslErrors(QList))); +#endif currentDownloads.append(reply); } -- cgit v1.2.3