From 4b47b11f2c504961d7d4dff164c3f015f4bd9445 Mon Sep 17 00:00:00 2001 From: Aaron McCarthy Date: Tue, 16 Feb 2010 10:25:34 +1000 Subject: Don't block forever if no bearer plugins are loaded. --- src/network/bearer/qnetworkconfigmanager_p.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/network/bearer/qnetworkconfigmanager_p.cpp b/src/network/bearer/qnetworkconfigmanager_p.cpp index bc354c1..141d522 100644 --- a/src/network/bearer/qnetworkconfigmanager_p.cpp +++ b/src/network/bearer/qnetworkconfigmanager_p.cpp @@ -244,6 +244,11 @@ QNetworkConfiguration QNetworkConfigurationManagerPrivate::defaultConfiguration( void QNetworkConfigurationManagerPrivate::performAsyncConfigurationUpdate() { + if (sessionEngines.isEmpty()) { + emit configurationUpdateComplete(); + return; + } + updating = true; for (int i = 0; i < sessionEngines.count(); ++i) { -- cgit v0.12