diff --git a/examples/webenginewidgets/demobrowser/browserapplication.cpp b/examples/webenginewidgets/demobrowser/browserapplication.cpp index 995626bb9807b9856c265513774c21ef15282095..32429a675c4323d309ac9cc4b925f63cc2683c27 100644 --- a/examples/webenginewidgets/demobrowser/browserapplication.cpp +++ b/examples/webenginewidgets/demobrowser/browserapplication.cpp @@ -332,8 +332,8 @@ void BrowserApplication::loadSettings() proxy.setPort(settings.value(QLatin1String("port"), 1080).toInt()); proxy.setUser(settings.value(QLatin1String("userName")).toString()); proxy.setPassword(settings.value(QLatin1String("password")).toString()); + QNetworkProxy::setApplicationProxy(proxy); } - QNetworkProxy::setApplicationProxy(proxy); settings.endGroup(); }