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>
This commit is contained in:
parent
083af3c319
commit
730dfc74d3
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user