Skip to content
Permalink
Browse files

[auth] bulletproof QgsAuthManager singleton to make server happy

  • Loading branch information
elpaso committed Oct 26, 2017
1 parent 4c7e3ff commit 5571a878b1bce490c305964ac95f8105cefce2d3
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/qgsapplication.cpp
@@ -876,7 +876,6 @@ void QgsApplication::initQgis()
QgsProject::instance();

// Initialize authentication manager and connect to database
instance()->mAuthManager = QgsAuthManager::instance();
authManager()->init( pluginPath(), qgisAuthDatabaseFilePath() );

// Make sure we have a NAM created on the main thread.
@@ -890,6 +889,10 @@ void QgsApplication::initQgis()

QgsAuthManager *QgsApplication::authManager()
{
if ( ! instance()->mAuthManager )
{
instance()->mAuthManager = QgsAuthManager::instance();
}
return instance()->mAuthManager;
}

0 comments on commit 5571a87

Please sign in to comment.
You can’t perform that action at this time.