forked from qt-creator/qt-creator
QmlDesigner: Fix QT_NO_SSL build
Change-Id: I313231142115acd00e9076df1e551c65490f8c48 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Burak Hancerli <burak.hancerli@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -43,9 +43,14 @@ QNetworkRequest FileDownloader::makeRequest() const
|
||||
{
|
||||
QUrl url = m_url;
|
||||
|
||||
if (url.scheme() == "https" && !QSslSocket::supportsSsl()) {
|
||||
qWarning() << "SSL is not available. HTTP will be used instead of HTTPS.";
|
||||
url.setScheme("http");
|
||||
if (url.scheme() == "https") {
|
||||
#ifndef QT_NO_SSL
|
||||
if (!QSslSocket::supportsSsl())
|
||||
#endif
|
||||
{
|
||||
qWarning() << "SSL is not available. HTTP will be used instead of HTTPS.";
|
||||
url.setScheme("http");
|
||||
}
|
||||
}
|
||||
|
||||
auto request = QNetworkRequest(url);
|
||||
|
||||
Reference in New Issue
Block a user