[welcome] Avoid threading warnings

- The NAM is being created from a method call on the GeneralRequirements
   object in the requirements-checking thread, while the GR object itself
   was created in a different thread. This cross-thread parenting
   produces a warning, and we don't need the parent relationship here
   anyway.
This commit is contained in:
Adriaan de Groot 2019-02-23 17:14:52 -05:00
parent a19d81e38c
commit 2cdfe35430

View File

@ -346,7 +346,7 @@ bool
GeneralRequirements::checkHasInternet() GeneralRequirements::checkHasInternet()
{ {
// default to true in the QNetworkAccessManager::UnknownAccessibility case // default to true in the QNetworkAccessManager::UnknownAccessibility case
QNetworkAccessManager qnam( this ); QNetworkAccessManager qnam;
bool hasInternet = qnam.networkAccessible() == QNetworkAccessManager::Accessible; bool hasInternet = qnam.networkAccessible() == QNetworkAccessManager::Accessible;
if ( !hasInternet && qnam.networkAccessible() == QNetworkAccessManager::UnknownAccessibility ) if ( !hasInternet && qnam.networkAccessible() == QNetworkAccessManager::UnknownAccessibility )