mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
[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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue