[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:
parent
a19d81e38c
commit
2cdfe35430
@ -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 )
|
||||||
|
Loading…
Reference in New Issue
Block a user