diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2010-03-25 04:38:14 (GMT) |
---|---|---|
committer | Lorn Potter <lorn.potter@nokia.com> | 2010-03-25 04:38:14 (GMT) |
commit | 2ecd038bd05671f70abd3aaf7df96ef486c84479 (patch) | |
tree | f71973b6aca9d74147d7c8462d588149a6fac0e6 | |
parent | d20510dd91e01b15e2346c0cb12e352080b6a093 (diff) | |
download | Qt-2ecd038bd05671f70abd3aaf7df96ef486c84479.zip Qt-2ecd038bd05671f70abd3aaf7df96ef486c84479.tar.gz Qt-2ecd038bd05671f70abd3aaf7df96ef486c84479.tar.bz2 |
not all interfaces should be active
-rw-r--r-- | src/plugins/bearer/generic/qgenericengine.cpp | 4 |
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)) { |