mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Always create a main network access manager
Or threaded networking - like XYZ layers - will crash in standalone apps.
This commit is contained in:
parent
0dd094ca9d
commit
ea43ce0e00
@ -882,6 +882,9 @@ void QgsApplication::initQgis()
|
||||
// create map layer registry if doesn't exist
|
||||
QgsMapLayerRegistry::instance();
|
||||
|
||||
// Make sure we have a NAM created on the main thread.
|
||||
QgsNetworkAccessManager::instance();
|
||||
|
||||
// initialize authentication manager and connect to database
|
||||
QgsAuthManager::instance()->init( pluginPath() );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user