summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorXizhi Zhu <xizhi.zhu@gmail.com>2012-01-18 20:38:17 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-02-15 14:31:26 (GMT)
commitaf8a22c53a095031c6d363882da373d2173201f5 (patch)
tree013e7f4551216481fed0cce000ade98625de84af /src/plugins
parent769a3679285a986c022f6dc2f1c43f05a2a666ef (diff)
downloadQt-af8a22c53a095031c6d363882da373d2173201f5.zip
Qt-af8a22c53a095031c6d363882da373d2173201f5.tar.gz
Qt-af8a22c53a095031c6d363882da373d2173201f5.tar.bz2
Fix online status checking in generic bearer plugin.
QNetworkInterface::IsUp means the interface is up, but not necessarily connected. QNetworkInterface::IsRunning means the interface is up and connected. Cherry-picked from Qt5 / QtBase commit: c93ac6758606f64af7fe2bac6c8bb08391d218a7 Task-number: QTBUG-22873 Change-Id: Ieb544058814520b4292b496de2e4672214f3d00a Reviewed-by: Shane Kearns <ext-shane.2.kearns@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/bearer/generic/qgenericengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/bearer/generic/qgenericengine.cpp b/src/plugins/bearer/generic/qgenericengine.cpp
index 4c17fdd..41b460f 100644
--- a/src/plugins/bearer/generic/qgenericengine.cpp
+++ b/src/plugins/bearer/generic/qgenericengine.cpp
@@ -235,7 +235,7 @@ void QGenericEngine::doRequestUpdate()
name = interface.name();
QNetworkConfiguration::StateFlags state = QNetworkConfiguration::Defined;
- if((interface.flags() & QNetworkInterface::IsUp) && !interface.addressEntries().isEmpty())
+ if ((interface.flags() & QNetworkInterface::IsRunning) && !interface.addressEntries().isEmpty())
state |= QNetworkConfiguration::Active;
if (accessPointConfigurations.contains(id)) {