mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25: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()
|
||||
{
|
||||
// default to true in the QNetworkAccessManager::UnknownAccessibility case
|
||||
QNetworkAccessManager qnam( this );
|
||||
QNetworkAccessManager qnam;
|
||||
bool hasInternet = qnam.networkAccessible() == QNetworkAccessManager::Accessible;
|
||||
|
||||
if ( !hasInternet && qnam.networkAccessible() == QNetworkAccessManager::UnknownAccessibility )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue