diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-04-20 05:35:29 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-04-20 07:02:46 (GMT) |
commit | c4c75ebd65454fd27bffefb4a3468ece20990c86 (patch) | |
tree | 3cf53f960be45c31005371a602fe297671c994a5 /src/plugins/bearer/generic | |
parent | b64a309f78b684bf3acb49bc6d0e9b93aa2138c5 (diff) | |
download | Qt-c4c75ebd65454fd27bffefb4a3468ece20990c86.zip Qt-c4c75ebd65454fd27bffefb4a3468ece20990c86.tar.gz Qt-c4c75ebd65454fd27bffefb4a3468ece20990c86.tar.bz2 |
Remove redundant network configuration updates on startup.
The initial list of network configurations was being fetched twice when
the bearer management plugins are loaded.
Diffstat (limited to 'src/plugins/bearer/generic')
-rw-r--r-- | src/plugins/bearer/generic/qgenericengine.cpp | 5 | ||||
-rw-r--r-- | src/plugins/bearer/generic/qgenericengine.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/bearer/generic/qgenericengine.cpp b/src/plugins/bearer/generic/qgenericengine.cpp index 41ff3e0..652fe4a 100644 --- a/src/plugins/bearer/generic/qgenericengine.cpp +++ b/src/plugins/bearer/generic/qgenericengine.cpp @@ -177,6 +177,11 @@ void QGenericEngine::disconnectFromId(const QString &id) emit connectionError(id, OperationNotSupported); } +void QGenericEngine::initialize() +{ + doRequestUpdate(); +} + void QGenericEngine::requestUpdate() { doRequestUpdate(); diff --git a/src/plugins/bearer/generic/qgenericengine.h b/src/plugins/bearer/generic/qgenericengine.h index 82d22af..cdbbc9d 100644 --- a/src/plugins/bearer/generic/qgenericengine.h +++ b/src/plugins/bearer/generic/qgenericengine.h @@ -70,6 +70,7 @@ public: void connectToId(const QString &id); void disconnectFromId(const QString &id); + Q_INVOKABLE void initialize(); Q_INVOKABLE void requestUpdate(); QNetworkSession::State sessionStateForId(const QString &id); |