Add workaround for QTBUG-80947

This commit is contained in:
Cameron Gutman 2019-12-21 12:58:45 -08:00
parent 626f0aec6a
commit 8e6e70683e
2 changed files with 6 additions and 0 deletions

View file

@ -29,6 +29,9 @@ AutoUpdateChecker::AutoUpdateChecker(QObject *parent) :
void AutoUpdateChecker::start()
{
#if defined(Q_OS_WIN32) || defined(Q_OS_DARWIN) || defined(STEAM_LINK) // Only run update checker on platforms without auto-update
// HACK: Set network accessibility to work around QTBUG-80947
m_Nam.setNetworkAccessible(QNetworkAccessManager::Accessible);
// We'll get a callback when this is finished
QUrl url("https://moonlight-stream.org/updates/qt.json");
m_Nam.get(QNetworkRequest(url));

View file

@ -454,6 +454,9 @@ NvHTTP::openConnection(QUrl baseUrl,
// Add our client certificate
request.setSslConfiguration(IdentityManager::get()->getSslConfig());
// HACK: Set reachability to work around QTBUG-80947
m_Nam.setNetworkAccessible(QNetworkAccessManager::Accessible);
QNetworkReply* reply = m_Nam.get(request);
// Run the request with a timeout if requested