2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-12 23:26:09 +00:00

Fix Blender 2.83 & Qt 5.15

This commit is contained in:
2020-06-24 11:44:00 -04:00
parent 0dd67e0662
commit af64349044
4 changed files with 35 additions and 13 deletions

View File

@@ -58,8 +58,7 @@ void DownloadManager::fetchIndex() {
m_indexInProgress = m_netManager.get(QNetworkRequest(url));
connect(m_indexInProgress, &QNetworkReply::finished, this, &DownloadManager::indexFinished);
connect(m_indexInProgress, qOverload<QNetworkReply::NetworkError>(&QNetworkReply::error), this,
&DownloadManager::indexError);
connect(m_indexInProgress, &QNetworkReply::errorOccurred, this, &DownloadManager::indexError);
connect(m_indexInProgress, &QNetworkReply::encrypted, this, &DownloadManager::indexValidateCert);
}
@@ -75,8 +74,7 @@ void DownloadManager::fetchBinary(const QString& str, const QString& outPath) {
const auto url = QUrl(QStringLiteral("%1%2/%3/%4").arg(Domain, track, CurPlatformString, str));
m_binaryInProgress = m_netManager.get(QNetworkRequest(url));
connect(m_binaryInProgress, &QNetworkReply::finished, this, &DownloadManager::binaryFinished);
connect(m_binaryInProgress, qOverload<QNetworkReply::NetworkError>(&QNetworkReply::error), this,
&DownloadManager::binaryError);
connect(m_binaryInProgress, &QNetworkReply::errorOccurred, this, &DownloadManager::binaryError);
connect(m_binaryInProgress, &QNetworkReply::encrypted, this, &DownloadManager::binaryValidateCert);
connect(m_binaryInProgress, &QNetworkReply::downloadProgress, this, &DownloadManager::binaryDownloadProgress);