Only use the QTBUG-80947 hack on Qt 5.14

This commit is contained in:
Cameron Gutman 2019-12-21 13:54:09 -08:00
parent 227ff4e13a
commit b419d21940
2 changed files with 5 additions and 1 deletions

View file

@ -29,8 +29,10 @@ 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
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
// HACK: Set network accessibility to work around QTBUG-80947
m_Nam.setNetworkAccessible(QNetworkAccessManager::Accessible);
#endif
// We'll get a callback when this is finished
QUrl url("https://moonlight-stream.org/updates/qt.json");

View file

@ -454,8 +454,10 @@ NvHTTP::openConnection(QUrl baseUrl,
// Add our client certificate
request.setSslConfiguration(IdentityManager::get()->getSslConfig());
// HACK: Set reachability to work around QTBUG-80947
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
// HACK: Set network accessibility to work around QTBUG-80947
m_Nam.setNetworkAccessible(QNetworkAccessManager::Accessible);
#endif
QNetworkReply* reply = m_Nam.get(request);