@@ -66,7 +66,7 @@ class QgsNetworkProxyFactory : public QNetworkProxyFactory
66
66
return proxies;
67
67
}
68
68
69
- // no proxies from the proxy factor list check for excludes
69
+ // no proxies from the proxy factory list check for excludes
70
70
if ( query.queryType () != QNetworkProxyQuery::UrlRequest )
71
71
return QList<QNetworkProxy>() << nam->fallbackProxy ();
72
72
@@ -364,16 +364,15 @@ void QgsNetworkAccessManager::setupDefaultProxyAndCache()
364
364
);
365
365
proxy = QNetworkProxy ( proxyType, proxyHost, proxyPort, proxyUser, proxyPassword );
366
366
}
367
- }
368
-
369
- // Setup network proxy authentication configuration
370
- QString authcfg = settings.value ( QStringLiteral ( " proxy/authcfg" ), " " ).toString ();
371
- if ( !authcfg.isEmpty ( ) )
372
- {
373
- QgsDebugMsg ( QStringLiteral ( " setting proxy from stored authentication configuration %1" ).arg ( authcfg ) );
374
- // Never crash! Never.
375
- if ( QgsApplication::authManager () )
376
- QgsApplication::authManager ()->updateNetworkProxy ( proxy, authcfg );
367
+ // Setup network proxy authentication configuration
368
+ QString authcfg = settings.value ( QStringLiteral ( " proxy/authcfg" ), " " ).toString ();
369
+ if ( !authcfg.isEmpty ( ) )
370
+ {
371
+ QgsDebugMsg ( QStringLiteral ( " setting proxy from stored authentication configuration %1" ).arg ( authcfg ) );
372
+ // Never crash! Never.
373
+ if ( QgsApplication::authManager () )
374
+ QgsApplication::authManager ()->updateNetworkProxy ( proxy, authcfg );
375
+ }
377
376
}
378
377
379
378
setFallbackProxyAndExcludes ( proxy, excludes );
0 commit comments