summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2010-03-25 04:38:14 (GMT)
committerLorn Potter <lorn.potter@nokia.com>2010-03-25 04:38:14 (GMT)
commit2ecd038bd05671f70abd3aaf7df96ef486c84479 (patch)
treef71973b6aca9d74147d7c8462d588149a6fac0e6
parentd20510dd91e01b15e2346c0cb12e352080b6a093 (diff)
downloadQt-2ecd038bd05671f70abd3aaf7df96ef486c84479.zip
Qt-2ecd038bd05671f70abd3aaf7df96ef486c84479.tar.gz
Qt-2ecd038bd05671f70abd3aaf7df96ef486c84479.tar.bz2
not all interfaces should be active
-rw-r--r--src/plugins/bearer/generic/qgenericengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/bearer/generic/qgenericengine.cpp b/src/plugins/bearer/generic/qgenericengine.cpp
index c1de4e0..b2d1b1f 100644
--- a/src/plugins/bearer/generic/qgenericengine.cpp
+++ b/src/plugins/bearer/generic/qgenericengine.cpp
@@ -221,8 +221,8 @@ void QGenericEngine::doRequestUpdate()
if (name.isEmpty())
name = interface.name();
- QNetworkConfiguration::StateFlags state = QNetworkConfiguration::Discovered;
- if (interface.flags() & QNetworkInterface::IsUp)
+ QNetworkConfiguration::StateFlags state = QNetworkConfiguration::Defined;
+ if((interface.flags() & QNetworkInterface::IsUp) && !interface.addressEntries().isEmpty())
state |= QNetworkConfiguration::Active;
if (accessPointConfigurations.contains(id)) {