Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
4.7.4
-
None
-
Symbian Belle, Nokia E7-00
Description
QNetworkConfigurationManager::isOnline always returns false in case of "offline mode" or disabled mobile network connection, even if WLAN connection is active.
To make sure that configuration is up to date the following code is used:
m_networkManager = new QNetworkConfigurationManager(this);
if (m_networkManager) {
QObject::connect(m_networkManager, SIGNAL(updateCompleted()), this, SLOT(slotUpdateCompleted()));
QObject::connect(m_networkManager, SIGNAL(onlineStateChanged(bool)), this, SLOT(slotOnlineStateChanged(bool)));
m_networkManager->updateConfigurations();
}
And QNetworkConfigurationManager::isOnline() is called within slotUpdateCompleted(), always returns false in specified cases.
When mobile netwok is active QNetworkConfigurationManager::isOnline() returns true.
Attachments
Issue Links
- relates to
-
QTBUG-20501 QNetworkConfigurationManager::isOnline() fails on Windows
- Closed