mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[libcalamares] Rely directly on QNAM's networkAccessible()
This commit is contained in:
parent
11d52df04c
commit
4389c254df
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue