[libcalamares] Rely directly on QNAM's networkAccessible()
This commit is contained in:
parent
11d52df04c
commit
4389c254df
@ -66,8 +66,9 @@ CalamaresUtils::Network::Manager::hasInternet()
|
|||||||
bool
|
bool
|
||||||
CalamaresUtils::Network::Manager::checkHasInternet()
|
CalamaresUtils::Network::Manager::checkHasInternet()
|
||||||
{
|
{
|
||||||
bool b = false;
|
bool b = d->m_nam->networkAccessible() == QNetworkAccessManager::Accessible;
|
||||||
if ( d->m_hasInternetUrl.isValid() )
|
|
||||||
|
if ( !b && d->m_hasInternetUrl.isValid() )
|
||||||
{
|
{
|
||||||
b = synchronousPing( d->m_hasInternetUrl );
|
b = synchronousPing( d->m_hasInternetUrl );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user